# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
281604 | MrDomino | Combo (IOI18_combo) | C++14 | 94 ms | 564 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 <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int n) {
string sol;
string posi = "ABXY";
while ((int) sol.size() < n) {
bool found = 0;
for (int j = 0; j < 4; j++) {
if (press(sol + posi[j]) == (int) sol.size() + 1) {
found = 1;
sol += posi[j];
break;
}
}
}
return sol;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |