# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95569 | shenxy | 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.
#include "combo.h"
#include <string>
#include <algorithm>
using namespace std;
string guess_sequence(int N) {
string p = "";
for (int i = 1; i <= N; ++i) {
p += "A";
int K = press(p);
if (K < i) {
p.pop_back();
p += "B";
} else continue;
int K = press(p);
if (K < i) {
p.pop_back();
p += "X";
} else continue;
int K = press(p);
if (K < i) {
p.pop_back();
p += "Y";
} else continue;
}
return p;
}