# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
761205 | JANCARAPAN | 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 "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fi first
#define se second
#define sz(a) (long long) a.size()
#define endl '\n'
#define dbg(a) cerr << #a << " = " << a << endl;
#define print(a) for (auto x : a) cerr << x << " "; cerr << endl;
const long long INF = 1e18, MOD = 1e9+7;
string guess_sequence(int n) {
string s = "";
vector<string> a = {"A", "B", "X", "Y"};
int it = 0;
if (press("AB")) {
if (press("A")) it = 0;
else it = 1;
}
else {`
if (press("X")) it = 2;
else it = 3;
}
s += a[it];