Submission #416960

#TimeUsernameProblemLanguageResultExecution timeMemory
416960snasibov05Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
163 ms262148 KiB
#include <vector> #include <string> using namespace std; #define pb push_back vector<string> v; void Init() {} void TypeLetter(char l) { string cur; if (!v.empty()) cur = v.back(); cur += l; v.pb(cur); } void UndoCommands(int u) { int n = v.size(); string cur = v[n - u - 1]; v.pb(cur); } char GetLetter(int p) { string cur = v.back(); return cur[p]; }
#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...