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 <iostream>
#include "combo.h"
using namespace std;
string guess_sequence(int N)
{
string s="";
for(int i=0;i<N;i++){
if(press(s+"A")>0){
s+="A";
}
else{
if(press(s+"B")>0){
s+="B";
}
else{
if(press(s+"X")>0){
s+="X";
}
else{
s+="Y";
}
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |