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){
char arr[4]={'A','B','X','Y'};
string s="";
char c='p';
for(int i=0;i<N;i++){
for(int l=0;l<4;l++){
string ss=s;
if(arr[l]==c){
continue;
}
ss+=arr[l];
if(press(ss)==i+1){
s=ss;
if(i==0){
c=arr[i];
}
break;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |