Submission #625336

#TimeUsernameProblemLanguageResultExecution timeMemory
625336lorenzoferrariCrayfish scrivener (IOI12_scrivener)C++17
100 / 100
472 ms227828 KiB
#include <bits/stdc++.h> #include <bits/extc++.h> using namespace std; using namespace __gnu_cxx; const int MAXN = 1e6+5; int head = 0; rope<char> s[MAXN]; void Init() {} void TypeLetter(char L) { s[head+1] = s[head]; s[++head].push_back(L); } void UndoCommands(int U) { s[head+1] = s[head - U]; ++head; } char GetLetter(int P) { return s[head][P]; }
#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...