# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
976602 | Isam | 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<bits/stdc++.h>
using namespace std;
string s[1000001];
int tot;
void Init();
void TypeLetter(char L){
++tot;
s[tot] = s[tot-1] + L;
}
void UndoCommands(int U){
s[tot] = s[tot - U];
}
char GetLetter(int P){
return s[tot][P-1];
}