| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1284319 | noobsolver24 | 콤보 (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define debug(x) cerr << #x << " = " << (x) << ' ';
#define endl '\n'
const int sz = 2e5 + 5;
const int inf = 1e18;
const int mod = 1e9 + 7;
string guess_sequence(int n) {
vector<char> v = {'A', 'B', 'X', 'Y'};
string res = "";
for (int i = 0; i < n; i++) {
for (int i = 0; i < 4; i++) {
string t = res + v[i];
int x = press(t);
if (x) {
res = t;
break;
}
}
}
return res;
}
