# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
569527 | redstonegamer22 | Crayfish scrivener (IOI12_scrivener) | C++17 | 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>
int l;
__gnu_cxx::crope v[1e6 + 7];
void Init() {;}
void TypeLetter(char c) { v[l + 1] = v[l] + c; ++l; }
void UndoCommands(int k) { v[l + 1] = v[l - k]; ++l; }
void GetLetter(int k) { return v[l][k]; }