# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
232262 | pere_gil | 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>
#include "combo.h"
using namespace std;
int guess_sequence(int N)
{
string s="";
for(int i=0;i<N;i++){
if(press(s+"A")>0){
s+="A";
}
else{
if(press(s+"B")>0){
s+="B";
}
else{
if(press(s+"X")>0){
s+="X";
}
else{
s+="Y";
}
}
}
}
return s;
}