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;
vector<string>ant;
void Init()
{
s="";
ant.push_back(s);
}
void TypeLetter(char L)
{
s+=L;
ant.push_back(s);
}
void UndoCommands(int U)
{
s=ant[(int(ant.size())-1)-U];
ant.push_back(s);
}
char GetLetter(int P)
{
return s[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... |