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;
int N;
crope S[1000'010];
void Init() {N=0;}
void TypeLetter(char L) {
N++;
S[N]=S[N-1];
S[N].push_back(L);
}
void UndoCommands(int U) {
N++;
S[N] = S[max(0, N-U-1)];
}
char GetLetter(int P) {
return S[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... |