Submission #841321

#TimeUsernameProblemLanguageResultExecution timeMemory
841321theghostkingCombo (IOI18_combo)C++17
0 / 100
0 ms208 KiB
#include <bits/stdc++.h> using namespace std; #include "combo.h" string guess_sequence(int N) { string curr = ""; string base = "ABXY"; bool chg = true; int score = 0; while (chg){ chg = false; for (int i = 0; i<4; i++){ string sp = curr; curr.push_back(base[i]); int sc = press(sp); if (sc-score == 1){ curr.push_back(base[i]); score = sc; chg = true; break; } } } return curr; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...