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