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;
using namespace __gnu_cxx;
const int maxn = 1e6 + 5;
crope r[maxn];
int n = 0;
void Init() { }
void TypeLetter(char L)
{
r[n+1] = r[n];
r[n+1].push_back(L);
n++;
}
void UndoCommands(int U)
{
r[n+1] = r[n-U];
n++;
}
char GetLetter(int P)
{
return r[n][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... |