Submission #584628

#TimeUsernameProblemLanguageResultExecution timeMemory
584628supercatexCombo (IOI18_combo)C++11
30 / 100
40 ms480 KiB
#include <bits/stdc++.h> using namespace std; int press(string); string guess_sequence(int N) { string p = "", c = ""; if (press("AB") > 0) if (press("A") > 0) p = "A", c = "BXY"; else p = "B", c = "AXY"; else if (press("X") > 0) p = "X", c = "ABY"; else p = "Y", c = "ABX"; int x = 1; while (x < N) { if (press(p + c[0]) > x) { p = p + c[0]; } else if (press(p + c[1]) > x) { p = p + c[1]; } else { p = p + c[2]; } x++; } return p; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...