Submission #231488

#TimeUsernameProblemLanguageResultExecution timeMemory
231488blacktulipCrayfish scrivener (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]; }

Compilation message (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...