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