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<bits/stdc++.h>
using namespace std;
string s[1000001];
int tot;
void Init(){};
void TypeLetter(char L){
++tot;
if(tot > 1) s[tot] = s[tot-1] + L;
else s[tot] = L;
}
void UndoCommands(int U){
s[tot] = s[tot - U];
}
char GetLetter(int P){
return s[tot][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... |