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;
#include "combo.h"
std::string guess_sequence(int N) {
string cur = "";
int len = 1;
for (int i = 0 ; i < N ; i++) {
string s = "ABXY";
random_shuffle(s.begin(), s.end());
for (char j : s) {
if (press(cur + j) == len) {
len++;
cur = cur + j;
break;
}
}
}
return cur;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |