Submission #736325

#TimeUsernameProblemLanguageResultExecution timeMemory
736325oyberCombo (IOI18_combo)C++14
30 / 100
56 ms448 KiB
#include "combo.h" using namespace std; string guess_sequence(int N) { string p = ""; for (int i = 0; i < N; i++) { string p1 = p+"A"+p+"B"; int score = press(p1); if (score > i) { string p2 = p+"A"; score = press(p2); if (score > i) { p += "A"; } else { p += "B"; } } else { string p2 = p+"X"; score = press(p2); if (score > i) { p += "X"; } else { p += "Y"; } } } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...