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;
char last;
vector<string> v;
void Init() {
v.push_back({""});
}
void TypeLetter(char L) {
string s = v.back();
s += L;
v.push_back(s);
}
void UndoCommands(int U) {
string s = v[v.size() - 1 - U];
v.push_back(s);
}
char GetLetter(int P) {
string s = v.back();
return s[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... |