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>
std::string ans[1000010];
int nr;
void Init()
{
return;
}
void TypeLetter(char L)
{
++nr;
ans[nr]=ans[nr-1];
ans[nr]+=L;
}
void UndoCommands(int U)
{
++nr;
ans[nr]=ans[nr-U-1];
}
char GetLetter(int P)
{
return ans[nr][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... |