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 ll long long
#define pb push_back
#define pii pair<int, int>
#define F first
#define S second
const int N = 1000005;
const int mod = 1e9+7;
string s = "";
vector<string> q;
void Init() {}
void TypeLetter(char L) {
s += L;
q.pb(s);
}
void UndoCommands(int U) {
int m = q.size();
m -= U;
m--;
s = q[m];
q.pb(s);
}
char GetLetter(int P) {
return s[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... |