# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1191603 | LolkasMeep | Crayfish scrivener (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include <ext/rope>
__gnu_cxx::crope h[1000005];
int i=0;
void Init();
void TypeLetter(char L){h[i]=h[i++]+L;}
void UndoCommands(int U){h[i+1]=h[i-U];i++;}
char GetLetter(int P){return h[i][P];}