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 <iostream>
#include <vector>
#include <string>
#include <set>
using namespace std;
char last;
string cur;
vector<string> v;
void Init() {}
void TypeLetter(char L) {
cur += L;
v.push_back(cur);
last = L;
}
void UndoCommands(int U) {
vector<string > f = v;
while(U --)
v.pop_back();
cur = (v.size() ? v.back() : "");
v = f;
v.push_back(cur);
}
char GetLetter(int P) {
return cur[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... |