# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
133470 | KieranHorgan | Combo (IOI18_combo) | C++17 | 47 ms | 480 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;
string guess_sequence(int N) {
vector<char> v;
string S;
int x = press("AB");
if(x) {
if(press("A")) {
S="A";
v={'B','X','Y'};
} else {
S="B";
v={'A','X','Y'};
}
} else {
if(press("X")) {
S="X";
v = {'A','B','Y'};
} else {
S="Y";
v = {'A','B','X'};
}
}
cerr << S << endl;
for(int i = 1; i < N-1; i++) {
string t;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |