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 <ext/rope>
int idx = 0;
__gnu_cxx::crope s[1000100];
void Init() {}
void TypeLetter(char L) {
idx++; s[idx] = s[idx - 1];
s[idx].push_back(L);
}
void UndoCommands(int U) {
++idx; s[idx] = s[idx - U - 1];
}
char GetLetter(int P) {
return s[idx][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... |