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;
vector<string> v;
void Init() {
v.push_back("");
}
void TypeLetter(char l) {
v.push_back(v.back()+l);
}
void UndoCommands(int u) {
int idx=v.size()-u-1;
v.push_back(v[idx]);
}
char GetLetter(int p) {
return v.back()[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... |