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;
#define REP(i,n) for(int i=0; i<(n); i++)
string guess_sequence(int N){
string dir="ABXY";
REP(i,8000)dir+="ABXY";
string s="";
int x=0;
REP(i,8000){
s="";
REP(j,8000){
for(int k=i;k<j;k++){
s+=dir[x];
cout << s << endl;
if(press(s)==N){
return s;
}
x++;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |