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>
//#include "grader.cpp"
using namespace std;
string guess_sequence(int N) {
string p = "";
if( press("A")==1)
p="A";
else
if( press("B")==1)
p="B";
else
if( press("X")==1)
p="X";
else
if( press("Y")==1)
p="Y";
///////
if( press( (p+"A") )==2)
p+="A";
else
if( press((p+"B"))==2)
p+="B";
else
if( press((p+"X"))==2)
p+="X";
else
if( press((p+"Y"))==2)
p+="Y";
if( press( (p + "A"))==3)
p+="A";
else
if( press((p+"B"))==3)
p+="B";
else
if( press((p+"X"))==3)
p+="X";
else
if( press((p+"Y"))==3)
p+="Y";
////////
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |