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 ans;
for(int i = 1; i<=N; ++i){
string ans1 = ans; string ans2 = ans;
ans1+='A'; ans2+='B';
//if(i == 3) cout<<ans1<<" "<<ans2<<endl;
if(press(ans1+ans2) == i){
if(press(ans1) == i) ans+='A';
else ans+='B';
}
else{
ans1 = ans; ans1+='X';
if(press(ans1) == i) ans+='X';
else ans+='Y';
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |