Submission #949152

#TimeUsernameProblemLanguageResultExecution timeMemory
949152SoSmolStenCombo (IOI18_combo)C++17
10 / 100
33 ms1448 KiB
#include "combo.h" using namespace std; const string combo = "ABXY"; string guess_sequence(int N) { string p = ""; for(int i = 0; i < N; ++i){ for(int j = 0; j < 4; ++j){ if(i){ if(p[0] == combo[j]) continue; } p += combo[j]; int v = press(p); if(v > i) break; p.pop_back(); } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...