# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1105902 | MateiKing80 | 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>
using namespace std;
vector<__gnu_cxx::crope> v(1);
int nrtot = 0;
void Init();
void TypeLetter(char L)
{
nrtot ++;
v.push_back(v[nrtot - 1] + L);
}
void UndoCommands(int U)
{
nrtot ++;
v.push_back(v[nrtot - U - 1]);
}
char GetLetter(int P)
{
return v[nrtot][P];
}