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 ll long long
#define endl "\n"
using namespace std;
char a[4] = {'A', 'B', 'X', 'Y'};
int n;
string guess_sequence(int N)
{
n = N;
string s = "";
for(int i = 1; i <= n; i++)
{
int loc = 0;
int ret = 0;
while(ret != i) ret = press(s + a[loc]);
s += a[loc];
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |