제출 #709800

#제출 시각아이디문제언어결과실행 시간메모리
709800Cyanmond콤보 (IOI18_combo)C++17
30 / 100
54 ms588 KiB
#include "combo.h" #include <bits/stdc++.h> std::string guess_sequence(int N) { std::string answer = ""; for (int i = 0; i < N; ++i) { if (press(answer + 'A' + answer + 'B') >= i + 1) { if (press(answer + 'A') == i + 1) { answer += 'A'; } else { answer += 'B'; } } else { if (press(answer + 'X') == i + 1) { answer += 'X'; } else { answer += 'Y'; } } } return answer; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...