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;
string guess_sequence(int n)
{
string s="",p;
for (int i=0;i<n;i++)
{
p=s+"X"+s+"Y";
if (press(p)>i)
{
p=s+"X";
if (press(p)>i) s+='X';
else s+='Y';
}
else
{
p=s+"A";
if (press(p)>i) s+='A';
else s+='B';
}
}
//cout<<s<<endl;
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |