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"
std::string guess_sequence(int N) {
std::string query="";
int cc=1;
while(cc<=N){
if(press(query+'A')==cc){
query+='A';
}
else if(press(query+'B')==cc){
query+='B';
}
else if(press(query+'X')==cc){
query+='X';
}
else{
query+='Y';
}
cc++;
}
return query;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |