# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1174565 | Seungni | Combo (IOI18_combo) | C++20 | 7 ms | 520 KiB |
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
string cand = "ABXY";
string s;
string solve_1() {
string S;
string a = "A", b = "B", x = "X";
int aa = press(a), bb = press(b), xx = press(x);
if (aa)
S = a;
else if (bb)
S = b;
else if (xx)
S = x;
else
S = "Y";
return S;
}
string guess(string prefix)
{
string ret = prefix;
ret += s[0];
for (int i = 0; i < 3; i++)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |