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>
#define Loop(x,l,r) for (ll x = (l); x < (r); ++x)
#define LoopR(x,l,r) for (ll x = (r)-1; x >= (l); --x)
typedef long long ll;
typedef std::pair<int, int> pii;
typedef std::pair<ll , ll > pll;
using namespace std;
std::string guess_sequence(int N) {
string s = "";
char a[4] = {'A', 'B', 'X', 'Y'};
Loop (i,0,N) {
char c;
int mx = 0;
for (char x : a) {
int dard = press(s + x);
if (dard > mx) {
mx = dard;
c = x;
}
}
s += c;
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |