#include <vector>
using namespace std;
int perform_experiment(vector<int> E);
vector<int> find_colours(int N, vector<int> X, vector<int> Y) {
int color0 = -1, color1 = -1;
for (int c0 = 0; c0 < N; ++c0) {
for (int c1 = 0; c1 < N; ++c1) {
vector<int> E = {c0, c1};
int r = perform_experiment(E);
if (r == 1) {
return {c0, c0};
} else {
vector<int> test0 = {-1, c1};
if (perform_experiment(test0) == 1) {
return {c0, c1};
}
vector<int> test1 = {c0, -1};
if (perform_experiment(test1) == 1) {
return {c0, c1};
}
}
}
}
return {0, 0};
}
# | 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... |