# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176415 | iyedoo | Combo (IOI18_combo) | C++20 | 0 ms | 0 KiB |
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
string s = "";
string letters = "";
int x;
x = press(s + "A");
if (x == (int)s.length() + 1) {
s += "A";
letters = "BXY";
}
else {
x = press(s + "B");
if (x == (int)s.length() + 1) {
s += "B";
letters = "AXY";
}
else {
x = press(s + "X");
if (x == (int)s.length() + 1) {
s += "X";
letters = "ABY";
}