Submission #547123

#TimeUsernameProblemLanguageResultExecution timeMemory
547123oToToTCrayfish scrivener (IOI12_scrivener)C++17
100 / 100
506 ms227864 KiB
#include <ext/rope> int cnt; __gnu_cxx::crope a[1000001]; void Init() { cnt = 0; } void TypeLetter(char c) { cnt++, a[cnt] = a[cnt - 1] + c; } void UndoCommands(int k) { cnt++, a[cnt] = a[cnt - k - 1]; } char GetLetter(int k){ return a[cnt][k]; }
#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...