#include "combo.h"
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) (int) (x).size()
#define endl '\n'
string guess_sequence(int N)
{
string ans="";
for(int i = 0;i < N;i++)
{
ans+='A';
if(press(ans)==i+1) continue;
ans[i]='B';
if(press(ans)==i+1) continue;
ans[i]='X';
if(press(ans)==i+1) continue;
ans[i]='Y';
if(press(ans)==i+1) continue;
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |