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 <vector>
#include <string>
using namespace std;
#define pb push_back
vector<string> v;
void Init() {}
void TypeLetter(char l) {
string cur;
if (!v.empty()) cur = v.back();
cur += l;
v.pb(cur);
}
void UndoCommands(int u) {
int n = v.size();
string cur = v[n - u - 1];
v.pb(cur);
}
char GetLetter(int p) {
string cur = v.back();
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... |