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>
// author: aykhn
using namespace std;
#define mpr make_pair
#define pb push_back
#define fi first
#define se second
int i;
vector<string> v;
void Init()
{
i = 0;
}
void TypeLetter(char L)
{
v.pb(v[i - 1] + L);
i++;
}
void UndoCommands(int U)
{
if (i - U - 1 < 0) v.pb("");
else v.pb(v[i - U - 1]);
i++;
}
char GetLetter(int P)
{
return v[i - 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... |