# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
552287 | pckien | 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>
string guess_sequence(int N) {
string s;
char mov[5];
mov[1] = 'X';
mov[2] = 'Y';
mov[3] = 'A';
mov[4] = 'B';
int cnt = 0;
fto (i, 1, N) {
fto (j, 1, 4) {
s += mov[j];
int t = press(s);
if (t > cnt) {
cnt = t;
break;
}
s.pop_back();
}
}
return s;
}