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>
using namespace std;
int press(std::string p);
string guess_sequence(int N){
string s[36] = {
"ABB",
"ABX",
"ABY",
"AXB",
"AXX",
"AXY",
"AYB",
"AYX",
"AYY",
"BAA",
"BAX",
"BAY",
"BXA",
"BXX",
"BXY",
"BYA",
"BYX",
"BYY",
"XAA",
"XAB",
"XAY",
"XBA",
"XBB",
"XBY",
"XYA",
"XYB",
"XYY",
"YAA",
"YAB",
"YAX",
"YBA",
"YBB",
"YBX",
"YXA",
"YXB",
"YXX"
};
for(int i = 0; i < 36; ++i){
int x = press(s[i]);
if(x == 3)
return s[i];
}
return "";
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |