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 arr[5005];
int pos = 1;
void Init() {
arr[0]="";
}
void TypeLetter(char L) {
arr[pos]=arr[pos-1]+L;
pos++;
}
void UndoCommands(int U) {
arr[pos]=arr[pos-U-1];
pos++;
}
char GetLetter(int P) {
char last = arr[pos][P];
return last;
}
# | 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... |