# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
269298 | Bill_00 | 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 "combo.h"
#include <bits/stdc++.h>
using namespace std;
std::string guess_sequence(int n){
string p="";
for(int i=1;i<=n;i++){
coins=press(p+'A');
if(coins==p.size()+1){
p+='A';
continue;
}
coins=press(p+'B');
if(coins==p.size()+1){
p+='B';
continue;
}
coins=press(p+'X');
if(coins==p.size()+1){
p+='X';
continue;
}
coins=press(p+'Y');
if(coins==p.size()+1){
p+='Y';
continue;
}
}
return p;
}