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;
// int press(string s);
string guess_sequence(int N){
string s = "";
string chrs = "ABXY";
for(int n = 1; n <= N; n++){
for(int i = 0; i < 4; i++){
if(n > 1 && s[0] == chrs[i]) continue;
if(press(s + chrs[i]) == n){
s += chrs[i];
break;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |