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 = "";
int m = 0;
map<int, string> mp;
void Init() {}
void TypeLetter(char L) {
s += L;
mp[m] = s;
m++;
}
void UndoCommands(int U) {
s = mp[m - 1 - U];
mp[m] = s;
m++;
}
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... |