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<iostream>
using namespace std;
int curr;
string strs[1000000];
void Init() {}
void TypeLetter(char L) {
curr++;
strs[curr]=strs[curr-1]+L;
}
void UndoCommands(int U) {
curr++;
strs[curr]=strs[curr-U-1];
}
char GetLetter(int P) {
return strs[curr][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... |