# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
195636 | juanmartinez111 | Crayfish scrivener (IOI12_scrivener) | C++14 | 250 ms | 262148 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="",x;
void Init() {
}
void TypeLetter(char L) {
if(posicion.empty()){
x=L;
posicion.push_back(x);
}
else {
x=posicion.back();
x+=L;
posicion.push_back(x);
}
}
void UndoCommands(int U) {
if(posicion.size()-1-U>=0 and posicion.size()-1-U<posicion.size()){
x=posicion[posicion.size()-1-U];
posicion.push_back(x);
}
}
char GetLetter(int P) {
if(posicion.size()){
return posicion.back()[P];
}
}
Compilation message (stderr)
# | 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... |