제출 #231488

#제출 시각아이디문제언어결과실행 시간메모리
231488blacktulip크레이피쉬 글쓰는 기계 (IOI12_scrivener)C++17
34 / 100
155 ms262148 KiB
#include <bits/stdc++.h> using namespace std; char last; string s; map<int,string> mpp; int cev,koy,say; void Init(){ } void TypeLetter(char L){ s+=L; say++; mpp[say]=s; } void UndoCommands(int U){ s=mpp[say-U]; say++; mpp[say]=s; } char GetLetter(int P){ if(s.size()<=P)return -1; return s[P]; }

컴파일 시 표준 에러 (stderr) 메시지

scrivener.cpp: In function 'char GetLetter(int)':
scrivener.cpp:21:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(s.size()<=P)return -1;
     ~~~~~~~~^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...