# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1009396 | Increedible | Combo (IOI18_combo) | C++14 | 47 ms | 940 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"
#include <string>
using namespace std;
string guess_sequence(int N) {
string s = "";
int oldcoins = 0;
while (s.size() < N) {
if (press(s + "A") > oldcoins) {
oldcoins++;
s += "A";
} else if (press(s + "B") > oldcoins) {
oldcoins++;
s += "B";
} else if (press(s + "X") > oldcoins) {
oldcoins++;
s += "X";
} else if (press(s + "Y") > oldcoins) {
oldcoins++;
s += "Y";
}
}
return s;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |