# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1226857 | fauntleroy | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "combo.h"
#define int long long
using namespace std;
string guess_sequence(int n) {
string ans;
for (int i = 0; i < n; ++i) {
for (char c : {'A', 'B', 'X', 'Y'}) {
ans.push_back(c);
if (press(ans))
break;
ans.pop_back();
}
}
return ans;
}