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 "combo.h"
#include<bits/stdc++.h>
using namespace std;
string guess_sequence(int N) {
string p = "", Moves = "BXY", test;
test = p;
int coins = 0;
for (int i = 0; i<N; ++i) {
p += 'A';
coins = press(p);
char best = 'A';
for (auto x : Moves) {
p[i] = x;
if (coins<press(p)) best = x;
}
p[i] = best;
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |