Submission #114954

#TimeUsernameProblemLanguageResultExecution timeMemory
114954zoooma13Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
1082 ms6632 KiB
#include <bits/stdc++.h> using namespace std; //#include "grader.cpp" vector <int> command; void Init(){ } void TypeLetter(char L){ command.push_back(L); } void UndoCommands(int U){ command.push_back(-U-1); } char GetLetter(int P){ string ans = ""; for(int i=command.size()-1; ~i; ){ if(command[i] < 0) i = i+command[i]; else{ ans += (char)command[i]; i--; } } return ans[ans.size()-P-1]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...