제출 #411583

#제출 시각아이디문제언어결과실행 시간메모리
411583nichke콤보 (IOI18_combo)C++14
10 / 100
72 ms448 KiB
#include <bits/stdc++.h> using namespace std; string but = "ABXY"; string t = ""; int ff; int press(string p); string guess_sequence(int N) { string res = ""; for (int i = 0; i < 4; i++) { t = res; t += but[i]; if (press(t)) { res = t; ff = i; break; } } for (int i = 1; i < N; i++) { for (int j = 0; j < 4; j++) { if (j == ff) continue; t = res; t += but[j]; if (press(t) == i + 1) { res = t; break; } } } return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...