# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
154057 | nthoang | Combo (IOI18_combo) | C++11 | 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>
#ifdef LOCAL
#include "/Users/nth842002/Library/debug.h"
#endif
using namespace std;
const char moves[] = {'A', 'B', 'X', 'Y'};
int press(string p) {
}
string guess_sequence(int n) {
for (int mask = 0; mask < (1 << (n + n)); mask++) {
string s;
s.resize(n);
for (int i = 0, t = mask; i < n; i++) {
s[i] = moves[t % 4];
t /= 4;
}
if (press(s) == n) {
return s;
}
}
}
int main() {
}