제출 #171686

#제출 시각아이디문제언어결과실행 시간메모리
171686triple_fault콤보 (IOI18_combo)C++14
10 / 100
129 ms548 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) == n) S = p1; else if (press(p2) == n) S = p2; else if (press(p3) == n) S = p3; else if (press(p4) == n) S = p4; } return S; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...