# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
302072 | Molukhyyeh | Combo (IOI18_combo) | C++14 | 1 ms | 200 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) {
string p = "";
int coins = press(p);
string S = "ABX";
if(N == 3){
do{
if(press(S) == 3)return S;
}while(next_permutation(S.begin(), S.end()));
S = "ABY";
do{
if(press(S) == 3)return S;
}while(next_permutation(S.begin(), S.end()));
S = "BXY";
do{
if(press(S) == 3)return S;
}while(next_permutation(S.begin(), S.end()));
S = "AXY";
do{
if(press(S) == 3)return S;
}while(next_permutation(S.begin(), S.end()));
}
return S;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |