This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
/*
vector <char> A[1e6+5];
vector <int> idx[1e6+5];
idx = -1;
stack <pair <char, int> > Ins;
*/
#include <bits/stdc++.h>
using namespace std;
vector <string> After;
string curr;
void Init() {
curr = "";
After.push_back(curr);
}
void TypeLetter(char L) {
curr.push_back(L);
After.push_back(curr);
}
void UndoCommands(int U) {
curr = After[After.size()-1-U];
After.push_back(curr);
}
char GetLetter(int p) {
return curr[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... |