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;
#define ll long long
#define pb push_back
#define mk make_pair
#define F first
#define S second
string guess_sequence(int n) {
string res = "";
vector <char> vc = {'A', 'B', 'X', 'Y'};
for(int i = 1; i <= n; i++) {
for(int j = 0; j < 4; j++) {
res += vc[j];
if(press(res) == i) break;
res.pop_back();
}
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |