Submission #418316

#TimeUsernameProblemLanguageResultExecution timeMemory
418316Aldas25Crayfish scrivener (IOI12_scrivener)C++14
34 / 100
140 ms262148 KiB
#include <bits/stdc++.h> using namespace std; #define FOR(i, a, b) for (int i = (a); i <= (b); i++) #define REP(n) FOR(O, 1, (n)) #define f first #define s second #define pb push_back typedef pair<int, int> pii; int curId; vector<string> seq; void Init() { curId = 0; seq.pb(""); } void printCur () { cout << " cur: " << seq[curId] << endl; } void TypeLetter(char L) { seq.pb(seq[curId]+L); curId = (int)seq.size()-1; //printCur(); } void UndoCommands(int U) { seq.pb(seq[curId-U]); curId = (int)seq.size()-1; //printCur(); } char GetLetter(int P) { //printCur(); return seq[curId][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...