# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976516 | marinaluca | 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 <bits/stdc++.h>
#include <ext/rope>
__gnu_cxx::crope c[1000100];
int k;
void Init(){}
void TypeLetter(char L){
k ++;
c[k] = c[k - 1];
c[k].push_back(L);
}
void UndoCommands(int U){
k ++:
s[k] = s[k - U - 1];
}
char GetLetter(int P){
return s[k][P];
}