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>
typedef long long ll;
using namespace std;
#define FOR(i, x, y) for(ll i=x; i<y; i++)
#define FORNEG(i, x, y) for(ll i=x; i>y; i--)
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL)
char last;
string sus = "";
vector<string> stuff;
void Init() {
stuff.push_back(sus);
}
void TypeLetter(char L) {
sus = stuff[stuff.size()-1] + L;
stuff.push_back(sus);
}
void UndoCommands(int U) {
stuff.push_back(stuff[stuff.size() - U - 1]);
}
char GetLetter(int P) {
return stuff[stuff.size()-1][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... |