#include "sphinx.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> find_colours(int n, vector<int> x, vector<int> y) {
vector<int> e(n , n) , ans(n , n);
vector<pair<int , int>> paths;
int v = 0;
for(int i = 0; i < n-1; i++){
e[i] = -1; e[i+1] = -1;
int act = perform_experiment(e);
if(act == 3){
ans[i] = v; v++; ans[i+1] = v;
}
else if(ans[i] != n) ans[i+1] = ans[i];
else{ans[i] = v; ans[i+1] = v; v++;}
}
return ans;
}
| # | 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... |