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;
using ll = long long;
#define MAXN (1000005)
rope<char> r[MAXN];
ll ind = 0;
void Init(){
ind = 0;
r[0] = "";
}
void TypeLetter(char L) {
ind++;
r[ind] = r[ind - 1] + L;
}
void UndoCommands(int U) {
ind++;
r[ind] = r[ind - U - 1];
}
char GetLetter(int P) {
return r[ind][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... |