# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
130112 | HungAnhGoldIBO2020 | Combo (IOI18_combo) | C++14 | 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.
#include<iostream>
using namespace std;
char ohyeah={'X','Y','A','B'};
string guess_sequence(int N){
string cac="";
int i,j;
for(i=0;i<N;i++){
for(j=0;j<4;j++){
if(i!=0&&cac[0]==ohyeah[j]){
continue;
}
if(press(cac+ohyeah[j])==i+1){
cac+=ohyeah[j];
break;
}
}
}
return cac;
}