| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1322759 | akneeka | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string ans = "";
string alphabet = "ABXY";
for (int pos = 0; pos < N; pos++) {
for (char c : alphabet) {
int r = press(ans + c);
if (r == (int)ans.size() + 1) {
ans += c;
break;
}
}
}
return ans;
}
