# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
670809 | mdub | Combo (IOI18_combo) | C++14 | 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>
using namespace std;
string guess_sequence(int n) {
string first;
string prefix, second;
string th1, th2, th3;
string other;
if (press("A")) {
prefix = "A";
second = "B";
th1 = "XB";
th2= "XX";
th3 = "XY";
other = "Y";
}
else if (press("B")) {
prefix = "B";
second = "A";
th1 = "XA";
th2 = "XX";
th3 = "XY";
other = "Y";
}
else if (press("X")) {
prefix = "X";
second = "A";
th1 = "BB";
th2 = "BA";