# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1232499 | VMaksimoski008 | Sphinx's Riddle (IOI24_sphinx) | C++20 | 0 ms | 0 KiB |
#include "main.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> find_colours(int n, vector<int> X, vector<int> Y) {
vector<int> ans(n);
for(int i=0; i<n; i++) {
for(int j=0; j<n; j++) {
vector<int> E(n, j);
E[i] = -1;
if(perform_experiment(E) == 1) {
ans[i] = j;
break;
}
}
}
return ans;
}