# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
552270 | lethinh05 | 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.
string guess_sequence(int n) {
string s = "";
fto(i, 0, 3) {
string p(1, chrs[i]);
int matches = press(p);
if (matches == 1) {
s += chrs[i];
break;
}
}
fto(i, 1, n-1) {
fto(i, 0, 3) {
string p = s + chrs[i];
int matches = press(p);
if (matches == sz(p)) {
s += chrs[i];
break;
}
}
}
return s;
}