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 <iostream>
#include <vector>
#include <string>
using namespace std;
vector<string> previous{""};
string cur;
void Init() {}
void TypeLetter(char L) {
cur += L;
previous.push_back(cur);
}
void UndoCommands(int U) {
cur = previous[cur.size() - U - 1];
previous.push_back(cur);
}
char GetLetter(int P) {
return cur[P];
}
void OutputLogs() {
for (auto str : previous) cout << str << "\n";
}
# | 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... |