Submission #759632

#TimeUsernameProblemLanguageResultExecution timeMemory
759632aykhnCrayfish scrivener (IOI12_scrivener)C++14
34 / 100
114 ms262144 KiB
#include <bits/stdc++.h> // author: aykhn using namespace std; #define mpr make_pair #define pb push_back #define fi first #define se second int i; vector<string> v; void Init() { i = 0; } void TypeLetter(char L) { if (i - 1 >= 0) v.pb(v[i - 1] + L); else { string tmp = ""; tmp += L; v.pb(tmp); } i++; } void UndoCommands(int U) { if (i - U - 1 < 0) v.pb(""); else v.pb(v[i - U - 1]); i++; } char GetLetter(int P) { return v[i - 1][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...