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 <string>
#include "combo.h"
using namespace std;
string guess_sequence(int N)
{
string p = "";
for (int i = 0; i < N; i++)
{
p = p + 'A';
int m = press(p);
if (m > i)
{
continue;
}
p[i] = 'B';
m = press(p);
if (m > i)
{
continue;
}
p[i] = 'X';
m = press(p);
if (m > i)
{
continue;
}
p[i] = 'Y';
}
return p;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |