This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<ext/rope>
using namespace __gnu_cxx;crope r[1000006];int now=0;void Init(){}void TypeLetter(char c){++now;r[now]=r[now-1];r[now].push_back(c);}
void UndoCommands(int u){++now;r[now]=r[now-u+1];}
char GetLetter(int p){return r[now][p];}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |