# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
92966 | beso123 | 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 <bits/stdc++.h>
#include "combo.h"
string a="ABXY";
using namespace std;
string guess_sequence(int N){
string s;
for(int k=1;k<=n;k++)
if(press(a[k])==1){
s+=a[k];
break;
}
for(int k=1;k<=n;k++){
string b=s+a[k];
if(press(b)==2){
s=b;
break;
}
}
for(int k=1;k<=n;k++){
string b=s+a[k];
if(press(b)==3){
s=b;
break;
}
}
return s;
}