#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<string> commands(1e7);
ll curCommand = 0;
string curString;
void Init() {
}
void TypeLetter(char L) {
curCommand++;
curString.append(1, L);
commands[curCommand] = curString;
}
void UndoCommands(int U) {
curString = commands[max(0LL, curCommand - U)];
++curCommand;
commands[curCommand] = curString;
}
char GetLetter(int P) {
return curString[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... |