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 <iostream>
#include "grader.h"
using namespace std;
void solve(int n)
{
vector<int> q(n, 0);
vector<int> rez(n, 0);
for(int i = 1; i <= n; i++)
{
for(int j = 0; j < n; j++)
{
q[j] = i;
if(query(q) == 1)
{
rez[j] = i;
break;
}
q[j] = 0;
}
}
query(rez);
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |