# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
666885 | teesla | Crayfish scrivener (IOI12_scrivener) | C++14 | 1092 ms | 1176 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;
char last;
string s;
void Init() {
s="";
return;
}
void TypeLetter(char L) {
last = L;
s=s+last;
return;
}
void UndoCommands(int U) {
string prov="";
for(int i=0; i<s.size()-U; i++){
prov=prov+s[i];
}
s=prov;
return;
}
char GetLetter(int P) {
return s[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... |