#include "combo.h"
#include <bits/stdc++.h>
// #define int long long
#define arr2 array<int, 2>
#define arr3 array<int, 3>
#define all(a) a.begin(), a.end()
#define double long double
// #pragma GCC target("avx2")
using namespace std;
string s;
char chs[4] = {'A', 'B', 'X', 'Y'};
string guess_sequence(int n) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j < 4; ++j) {
if (press(s + chs[j]) > s.size()) {
s += chs[j];
break;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |