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 <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
string p="";
int c=0;
for(int i=1;i<=N;++i){
string temp=p+'A';
if(press(temp)>c) {
p+='A'; ++c; continue;
}
temp=p+'B';
if(press(temp)>c) {
p+='B'; ++c; continue;
}
temp=p+'X';
if(press(temp)>c) {
p+='X'; ++c; continue;
}
temp=p+'Y';
if(press(temp)>c) {
p+='Y'; ++c; continue;
}
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |