# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
231488 | blacktulip | Crayfish scrivener (IOI12_scrivener) | C++17 | 155 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;
char last;
string s;
map<int,string> mpp;
int cev,koy,say;
void Init(){
}
void TypeLetter(char L){
s+=L;
say++;
mpp[say]=s;
}
void UndoCommands(int U){
s=mpp[say-U];
say++;
mpp[say]=s;
}
char GetLetter(int P){
if(s.size()<=P)return -1;
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... |