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;
int it = 0;
char last;
string a[5005];
void Init() {
}
void TypeLetter(char L) {
if(it != 0) a[it] += a[it-1];
last = L;
a[it] += last;
//cout<<it<<" "<<a[it]<<endl;
it++;
}
void UndoCommands(int U) {
a[it] = a[it-U-1];
//cout<<it<<" "<<a[it]<<endl;
it++;
}
char GetLetter(int P) {
last = a[it][P];
return last;
}
# | 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... |