# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1038439 | ArthuroWich | Crayfish scrivener (IOI12_scrivener) | C++17 | 0 ms | 0 KiB |
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 "grader.h"
#include<bits/stdc++.h>
using namespace std;
int co = 0;
string a[1000005];
void Init() {};
void TypeLetter(char L) {
co++;
a[co].push_back(L);
}
void UndoCommands(int U) {
co++;
a[co] = a[co-1-U];
}
char GetLetter(int P) {
return a[co].back();
}