# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
216627 | achvanov | Combo (IOI18_combo) | C++17 | 111 ms | 584 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;
char c[] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int n) {
string res = "";
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 4; ++j) {
if (press(res + c[j]) > res.size()) {
res += c[j];
break;
}
}
}
return res;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |