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;
const int N=5e3+100;
int cnt=1;
string s[N];
void Init() {}
void TypeLetter(char L){
s[cnt]=s[cnt-1]+L;
cnt++;
}
void UndoCommands(int U){
s[cnt]=s[cnt-U-1];
cnt++;
}
char GetLetter(int P){
return s[cnt-1][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... |