# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1171645 | nguyenkhangninh99 | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N){
string res = "";
vector<string> k;
k.push_back("A");
k.push_back("B");
k.push_back("X");
k.push_back("Y");
for (int i = 1; i <= n; i++){
for(string x: k){
if(press(res + x) == res.size() + 1){
res += x;
break;
}
}
}
return res;
}