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>
#include "combo.h"
using namespace std;
string guess_sequence(int n) {
string s = "";
string cur = "ABXY";
for (int i = 0; i < 4; i++){
s += cur[i];
for (int j = 0; j < 4; j++){
s += cur[j];
for (int k = 0; k < 4; k++){
s += cur[k];
if (press(s) == 3){
return s;
}
s.pop_back();
}
s.pop_back();
}
s.pop_back();
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |