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"
using namespace std;
namespace SUB1 {
string guess_sequence(int N) {
string ans = "";
for (int i = 0; i < N; i++) {
for (char c : {'A', 'B', 'X', 'Y'}) {
ans.push_back(c);
if (press(ans) == i + 1)
break;
ans.pop_back();
}
}
return ans;
}
}
string guess_sequence(int N) {
return SUB1::guess_sequence(N);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |