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;
struct node{
string s;
};
node *ref[1000050];
void Init() {}
void TypeLetter(char L) {
string s(1,L);
if(v.empty())v.push_back(s);
else v.push_back(v.back()+s);
}
void UndoCommands(int U) {
v.push_back(v[v.size()-1-U]);
}
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... |