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"
#define ll long long
#define ff first
#define ss second
#define pb push_back
using namespace std;
std::string guess_sequence(int N) {
string p = "";
string posi = "ABXY";
string ans = "";
for(int i = 0 ; i < N ; i ++){
int best = 0, res = 0;
for(int j = 0 ; j < 4 ; j ++){
p = ans;
p+= posi[j];
int coin = press(p);
if(coin > res){
res = coin;
best = j;
}
}
ans += posi[best];
}
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |