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>
using namespace std;
typedef int ll;
std::string guess_sequence(int N) {
string s="";
for (int i=1;i<=N;i++)
{
ll pp=press(s+"A"+s+"B");
if (pp>=i)
{
ll aa=press(s+"A");
if (aa>=i)
{
s+="A";
}
else s+="B";
}
else
{
ll aa=press(s+"X");
if (aa>=i)
{
s+="X";
}
else s+="Y";
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |