| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1324401 | riafhasan2010 | Combo (IOI18_combo) | C++17 | 0 ms | 388 KiB |
#include "combo.h"
using namespace std;
std::string guess_sequence(int N) {
string alpha, p = "";
if (press("A")) p += 'A', alpha = "BXY";
else if (press("B")) p += 'B', alpha = "AXY";
else if (press("X")) p += 'X', alpha = "ABY";
else p += 'Y', alpha = "ABX";
for (int i = 0; i < N; i++) {
if (press(p + alpha[0]) == i + 1) p += alpha[0];
else if (press(p + alpha[1]) == i + 1) p += alpha[1];
else p += alpha [2];
}
return p;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
