# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1006861 | christinelynn | Combo (IOI18_combo) | C++17 | 0 ms | 0 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>
using namespace std;
string guess_sequence(int n) {
vector<char> c = {'A', 'B', 'X', 'Y'};
string s = "...";
for (auto &i : c) {
for (auto &j : c) {
for (auto &k : c) {
s[0] = i;
s[1] = j;
s[2] = k;
if (press(s)) {
return s;
}
}
}
}
return s;
}