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 s="";
for(int i=1;i<=N;i++){
if (press(s+"X")==N) s+="X";
else if (press(s+"Y")==N) s+="Y";
else if(press(s+"A")==N) s+="A";
else if(press(s+"B")==N) s+="B";
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |