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>
using namespace std;
const int mxn=1e6+5;
int k=0;
string arr[mxn];
char last;
void Init() {}
void TypeLetter(char L) {
k++;
string s=arr[k-1];
s+=L;
arr[k]=s;
}
void UndoCommands(int U) {
++k;
arr[k]=arr[k-U-1];
}
char GetLetter(int P) {
return arr[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... |