# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
254520 | Erkhemkhuu | Combo (IOI18_combo) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include <combo.h>
using namespace std;
#define ll long long
#define pb push_back
#define mk make_pair
#define F first
#define S second
string guess_sequence(int n) {
string res = "";
vector <char> vc = {'A', 'B', 'X', 'Y'};
for(int i = 0; i < vc.size(); i++)
for(int j = 0; j < vc.size(); j++)
for(int k = 0; k < vc.size(); k++)
string temp = vc[i] + vc[j] + vc[k];
if(press(temp) == 3)
res = temp;
}
return res;
}