#include <ext/rope>
using namespace __gnu_cxx;
const int SZ = 1e7 + 1;
crope states[SZ];
int currentIndex = 0;
void Init() {}
void TypeLetter(char L) {
states[currentIndex + 1] = states[currentIndex] + L;
currentIndex++;
}
void UndoCommands(int U) {
states[currentIndex + 1] = states[currentIndex - U];
currentIndex++;
}
char GetLetter(int P) {
return states[currentIndex][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... |