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)
{
char V[4] = {'A', 'B', 'X', 'Y'};
if(N == 3)
{
for(int i = 1; i <= 4; ++i)
for(int j = 1; j <= 4; ++j)
for(int k = 1; k <= 4; ++k)
if(i != j && i != k)
{
string ans;
if(!ans.empty())
ans.clear();
ans.push_back(V[i - 1]);
ans.push_back(V[j - 1]);
ans.push_back(V[k - 1]);
if(press(ans) == 3)
return ans;
}
}
else
{
}
return "A";
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |