# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1176414 | iyedoo | Combo (IOI18_combo) | C++20 | 0 ms | 396 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";
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |