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;
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define REP(n) FOR(O, 1, (n))
#define f first
#define s second
#define pb push_back
typedef pair<int, int> pii;
int curId;
vector<string> seq;
void Init() {
curId = 0;
seq.pb("");
}
void printCur () {
cout << " cur: " << seq[curId] << endl;
}
void TypeLetter(char L) {
seq.pb(seq[curId]+L);
curId = (int)seq.size()-1;
//printCur();
}
void UndoCommands(int U) {
seq.pb(seq[curId-U]);
curId = (int)seq.size()-1;
//printCur();
}
char GetLetter(int P) {
//printCur();
return seq[curId][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... |