# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
70786 | edisonhello | Crayfish scrivener (IOI12_scrivener) | C++14 | 0 ms | 0 KiB |
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>
#define a auto
__gnu_cxx::crope r[1<<20];
int x;
a Init(){}
a TypeLetter(a c){
++x;
r[x]=r[x-1];
r[x].push_back(c);
}
a UndoCommands(a u){
++x;
r[x]=r[x-u-1];
}
a GetLetter(a p){
return r[x][p];
}