#include "sphinx.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> find_colours(int N, vector<int> X, vector<int> Y)
{
int n = N;
vector<int> x = X, y = Y;
vector<int> e(n, -1);
vector<int> res(n, 0);
for(int i = 0; i < n; i++)
{
e.assign(n, -1);
for(int j = 0; j < n; j++)
{
for(int k = 0; k < n; k++)
{
if(k == i)
continue;
e[k] = j;
}
int m = perform_experiment(e);
if(m == 1)
{
res[i] = j;
break;
}
}
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |