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"
using namespace std;
string guess_sequence(int N)
{
string s = "", temp;
string l = "ABXY";
int i, v, j;
for (i = 1; i<=N; i++)
{
for (j = 0; j<4; j++)
{
temp = s + l[j];
v = press(temp);
if (v == i)
{
s = s + l[j];
break;
}
}
}
return s;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |