# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1124877 | sinatbtfard | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence (int n){
string s = "";
for (int i = 0; i < n; i++){
for (auto c : {'A', 'B', 'X', 'Y'}){
if (prees(s + c) == i + 1){
s += c;
break;
}
}
}
return s;
}