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];
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |