Submission #440201

#TimeUsernameProblemLanguageResultExecution timeMemory
440201prvocisloCrayfish scrivener (IOI12_scrivener)C++17
100 / 100
648 ms224452 KiB
#include<bits/stdc++.h> #include <ext/rope> using namespace std; using namespace __gnu_cxx; const int maxn = 1e6 + 5; crope r[maxn]; int n = 0; void Init() { } void TypeLetter(char L) { r[n+1] = r[n]; r[n+1].push_back(L); n++; } void UndoCommands(int U) { r[n+1] = r[n-U]; n++; } char GetLetter(int P) { return r[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...