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;
char V[4] = {'A', 'B', 'X', 'Y'};
for(int i = 1; i <= N; ++i)
{
for(int j = 0; j < 4; ++j)
{
S.push_back(V[j]);
if(press(S) == i)
break;
else S.pop_back();
}
}
return S;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |