# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176418 | iyedoo | Combo (IOI18_combo) | C++20 | 7 ms | 484 KiB |
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string s = "";
string letters = "";
int x;
x = press("AB");
if (x >= 1) {
x = press("A");
if (x == 1) {
s += "A";
letters = "BXY";
}
else {
s += "B";
letters = "AXY";
}
}
else {
x = press(s + "X");
if (x == 1) {
s += "X";
letters = "ABY";
}
else {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |