# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
763868 | ind1v | Combo (IOI18_combo) | C++11 | 1 ms | 336 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) {
array<char, 4> c = {'A', 'B', 'X', 'Y'};
vector<string> candidates;
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
for (int k = 0; k < 4; k++) {
string s;
s += c[i];
s += c[j];
s += c[k];
candidates.emplace_back(s);
}
}
}
for (auto &x : candidates) {
int ans = press(x);
if (ans == 3) {
return x;
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |