# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1185054 | countless | Crayfish scrivener (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include<ext/rope>
__gnu_cxx::crope r[1<<20];int x;void TypeLetter(char c){++x;r[x]=r[x-1];r[x].push_back(c);}void UndoCommands(int u){++x;r[x]=r[x-u-1];}char GetLetter(int p){return r[x][p];}