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>
#define N 1000005
using namespace std;
string s[N];
int cnt = 0;
void Init() {}
void TypeLetter(char l) {
s[cnt + 1] = s[cnt] + l;
cnt++;
}
void UndoCommands(int u) {
s[cnt + 1] = s[cnt - u];
cnt++;
}
char GetLetter(int p) {
return s[cnt][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... |