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>
__gnu_cxx::crope c[1000100];
int k;
void Init(){}
void TypeLetter(char L){
k ++;
c[k] = c[k - 1];
c[k].push_back(L);
}
void UndoCommands(int U){
k ++;
c[k] = c[k - U - 1];
}
char GetLetter(int P){
return c[k][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... |