# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
194147 | juanmartinez111 | Crayfish scrivener (IOI12_scrivener) | C++14 | 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<bits/stdc++.h>
using namespace std;
vector<string >posicion;
string pal="";
void Init() {
}
void TypeLetter(char L) {
pal.push_back(L);
last = L;
posicion.push_back(pal);
}
void UndoCommands(int U) {
string s=posicion[posicion.size()-1-U];
posicion.push_back(s);
}
char GetLetter(int P) {
return posicion.back()[P];
}