| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 588916 | Mahtimursu | Combo (IOI18_combo) | C++17 | 60 ms | 536 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"
using namespace std;
char opt[] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int N) {
string p = "";
while ((int)p.length() < N) {
int tre = 0;
bool ok = 0;
for (char c : opt) {
if (p.length() > 0 && c == p[0]) continue;
if (ok || press(p + c) == (int)p.length() + 1) {
p += c;
break;
} else tre++;
if (p.length() > 0 && tre == 2) ok = 1;
if (p.length() == 0 && tre == 3) ok = 1;
}
}
return p;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
