# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
867976 | wii | Combo (IOI18_combo) | C++17 | 38 ms | 1440 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 "combo.h"
std::string guess_sequence(int N) {
std::string S;
for (int i = 1; i <= N; ++i) {
for (char c: {'A', 'B', 'X', 'Y'}) {
S.push_back(c);
if (press(S) == S.size())
break;
S.pop_back();
}
}
return S;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |