| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1304547 | disfyy | 콤보 (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
int press(string p);
string guess_sequence(int N) {
char a[] = {'a', 'A', 'B', 'X', 'Y'};
for(int i = 1; i <= 4; i++) {
for(int j = 1; j <= 4; j++) {
for(int k = 1; k <= 4; k++) {
if(i != j && i != k) {
string cur = "";
cur += a[i];
cur += a[j];
ll res = press(cur);
if(res == 3) {
return cur;
}
}
}
}
}
}
