제출 #171687

#제출 시각아이디문제언어결과실행 시간메모리
171687triple_fault콤보 (IOI18_combo)C++14
30 / 100
81 ms588 KiB
#include "combo.h" std::string guess_sequence(int N) { std::string S = ""; for (int n = 1; n <= N; ++n) { std::string p1 = S + "A"; std::string p2 = S + "B"; std::string p3 = S + "X"; std::string p4 = S + "Y"; if (press(p1 + p2) >= n) { if (press(p1) >= n) S = p1; else S = p2; } else { if (press(p3) >= n) S = p3; else S = p4; } } return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...