제출 #536411

#제출 시각아이디문제언어결과실행 시간메모리
536411timreizin콤보 (IOI18_combo)C++17
30 / 100
46 ms548 KiB
#include "combo.h" #include <iostream> using namespace std; string guess_sequence(int n) { string s = ""; for (int i = 0; i < n; ++i) { if (press(s + 'A' + s + 'B') >= i + 1) { if (press(s + 'A') >= i + 1) s += 'A'; else s += 'B'; } else { if (press(s + 'X') >= i + 1) s += 'X'; else s += 'Y'; } } return s; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...