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;
string last;
map<int, string> s;
int k = 0;
void Init() {}
void TypeLetter(char L) {
s[0] = "";
k++;
last += L;
s[k] = last;
}
void UndoCommands(int U) {
last = s[U];
s[++k] = last;
}
char GetLetter(int P) {
return last[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... |