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>
#include <ext/rope>
using namespace std; using namespace __gnu_cxx;
rope<char> str[1000005];
int cur;
void Init() {
}
void TypeLetter(char L) {
cur++;
str[cur] = str[cur-1];
str[cur] += L;
}
void UndoCommands(int U) {
cur++;
str[cur] = str[cur-U-1];
}
char GetLetter(int P) {
return str[cur][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... |