# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006803 | GTA | 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 fr(m,n,k) for(int m=n;m<=k;m++)
int n;
string guess_sequence(int N) {
vector<char> v(4) = {'A', 'B', 'X', 'Y'};
fr(i, 0, 3) {
fr(j, 0, 3) {
fr(l, 0, 3) {
string p = v[i] + v[j] + v[l];
int x = press(p);
if (x == 3) {
return p;
}
}
}
}
}