제출 #153203

#제출 시각아이디문제언어결과실행 시간메모리
153203joylintp콤보 (IOI18_combo)C++17
10 / 100
85 ms440 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int n) { string ret, but = "ABX"; for (int i = 0; i < n; i++) { bool suc = false; for (int j = 0; j < 3 && !suc; j++) if (press(ret + but[j]) == (int)ret.size() + 1) { ret += but[j]; suc = true; } if (!suc) ret += "Y"; } return ret; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...