# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
119241 | ioilolcom | 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.
string ans="";
void Init() {
ans="";
}
void Init() {
}
void TypeLetter(char L){
ans+=L;
}
void UndoCommands(int m) {
if(m>=(int)ans.size()) {
ans="";
}
else{
ans.erase((int)ans.size()-m,(int)ans.size()-1);
}
}
char GetLetter(int P){
return ans[P-1];
}