# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
144331 | mosesmayer | Combo (IOI18_combo) | C++17 | 45 ms | 524 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "combo.h"
#include <iostream>
#include <string>
using namespace std;
std::string guess_sequence(int N) {
std::string p = "";
string guess, ans = "";
char g[3];
guess = "AB";
int ret = press("AB");
if (ret >= 1){
ret = press("A");
if (ret == 0){
ans += "B";
g[0] = 'A', g[1] = 'X', g[2] = 'Y';
} else {
ans += "A";
g[0] = 'B', g[1] = 'X', g[2] = 'Y';
}
} else {
ret = press("X");
if (ret == 0){
ans += "Y";
g[0] = 'A', g[1] = 'X', g[2] = 'B';
} else {
ans += "X";
g[0] = 'B', g[1] = 'A', g[2] = 'Y';
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |