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 <string>
std::string str[1000001];
int curr=1;
int end=1;
void Init() {}
void TypeLetter(char L) {
str[end]=str[curr]+L;
curr=end++;
}
void UndoCommands(int U) {
curr-=U;
}
char GetLetter(int P) {
return str[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... |