# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1191569 | LolkasMeep | Crayfish scrivener (IOI12_scrivener) | C++20 | 0 ms | 0 KiB |
#include "bits/stdc++.h"
using namespace std;
string h[1000005];
int i=1;
void Init(){h[0]="";}
void TypeLetter(char L){
h[i]=h[i-1]+L;
i++;
}
void UndoCommands(int U){
h[i] = h[i-U];
i++;
}
char GetLetter(int P){
return h[i][p];
}