Submission #1124679

#TimeUsernameProblemLanguageResultExecution timeMemory
1124679Mousa_AboubakerSphinx's Riddle (IOI24_sphinx)C++20
10 / 100
57 ms1152 KiB
#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 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...