# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1278294 | mm2302 | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
// Source: https://usaco.guide/general/io
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int n){
if(n==3){
int main_button;
if(press("A")==1) main_button=0;
else if(press("B")==1) main_button=1;
else if(press("X")==1) main_button=2;
else if(press("Y")==1) main_button=3;
string s="ABXY";
for(int i=0;i<4;i++){
for(int j=0;j<4;j++){
if(i!=main_button && j!=main_button){
string p=string(1, s[main_button])+s[i]+s[j];
if(press(p)==3) return p;
}
}
}
}
else return ("jgk");
}
/*
int main() {
int a, b, c; cin >> a >> b >> c;
cout << "The sum of these three numbers is " << a + b + c << "\n";
}