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;
string S[int(1000000) + 10];
int N;
void Init() {}
void TypeLetter(char L) {
N++;
S[N] = S[N - 1];
S[N].push_back(L);
}
void UndoCommands(int U) {
N++;
S[N] = S[max(N - U - 1, 0)];
}
char GetLetter(int P) {
return S[N][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... |