제출 #420803

#제출 시각아이디문제언어결과실행 시간메모리
420803bipartite_matching콤보 (IOI18_combo)C++14
10 / 100
113 ms324 KiB
#include <bits/stdc++.h> #define forint(i, N) for (int i = 0; i < (N); i++) using namespace std; int press(string p); string test = "ABBBXXYX"; string guess_sequence(int N) { string ans = ""; if (press("A") == 1) { ans += 'A'; } if (press("B") == 1) { ans += 'B'; } if (press("X") == 1) { ans += 'X'; } if (press("Y") == 1) { ans += 'Y'; } //int pos = 1; for (int i = 1; i < N; i++) { if (ans[0] != 'A') { if (press(ans + 'A') == i + 1) { ans += 'A'; continue; } } if (ans[0] != 'B') { if (press(ans + 'B') == i + 1) { ans += 'B'; continue; } } if (ans[0] != 'X') { if (press(ans + 'X') == i + 1) { ans += 'X'; continue; } } if (ans[0] != 'Y') { if (press(ans + 'Y') == i + 1) { ans += 'Y'; continue; } } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...