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;
typedef long long ll;
string S = "ABXY";
string guess_sequence(int n){
string ans;
int score = 0;
ans.push_back('A');
for(int i=0; S[i]; i++){
ans.back() = S[i];
int w = press(ans);
if(w>score){
score = w;
break;
}
}
for(int i=1; i<n; i++){
ans.push_back('A');
for(int j=0; S[j]; j++){
if(S[j]==S[0]) continue;
ans.back() = S[j];
int w = press(ans);
if(w>score){
score = w;
break;
}
}
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |