# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
750951 | B_Shahrom | Combo (IOI18_combo) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
string guess_sequence(int N)
{
string last="";
string mx="ABXY";
while (last.size()!=N){
for (int i=0; i<4; i++){
string tl=last+mx[i];
int d=press(tl);
//cout<<d<<endl;
if (d==tl.size()){
last+=mx[i];
break;
}
}
//cout<<last<<endl;
}
return last;
}