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> history;
void Init()
{
history.push_back("");
}
void TypeLetter(char ch)
{
history.push_back(history.back() + ch);
}
void UndoCommands(int k)
{
history.push_back(history.rbegin()[k - 1]);
}
char GetLetter(int i)
{
return history.back()[i];
}
# | 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... |