Submission #569399

#TimeUsernameProblemLanguageResultExecution timeMemory
569399fuad27Crayfish scrivener (IOI12_scrivener)C++17
100 / 100
561 ms227788 KiB
#include<bits/stdc++.h> #include<ext/rope> using namespace std; using namespace __gnu_cxx; int N; crope S[1000'010]; void Init() {N=0;} void TypeLetter(char L) { N++; S[N]=S[N-1]; S[N].push_back(L); } void UndoCommands(int U) { N++; S[N] = S[max(0, N-U-1)]; } char GetLetter(int P) { return S[N][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...