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