Submission #1241878

#TimeUsernameProblemLanguageResultExecution timeMemory
1241878mrivera11Sphinx's Riddle (IOI24_sphinx)C++20
0 / 100
0 ms412 KiB
#include <bits/stdc++.h> using namespace std; int perform_experiment(vector<int> E); vector<int> find_colours(int N, vector<int> X, vector<int> Y) { for (int c0 = 0; c0 < N; ++c0) { for (int c1 = 0; c1 < N; ++c1) { vector<int> E = {c0, c1}; int res = perform_experiment(E); if (res == 1 && c0 == c1) { return {c0, c1}; } else if (res == 2) { vector<int> test1 = {-1, c1}; if (perform_experiment(test1) == 1) { return {c0, c1}; } vector<int> test0 = {c0, -1}; if (perform_experiment(test0) == 1) { return {c0, c1}; } } } } return {0, 0}; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...