Submission #1191440

#TimeUsernameProblemLanguageResultExecution timeMemory
1191440drakozsRarest Insects (IOI22_insects)C++20
10 / 100
98 ms408 KiB
#include "insects.h" #include<bits/stdc++.h> using namespace std; int min_cardinality(int N) { int ans = N; for (int i = 0; i < N; i++){ int count = 1; move_inside(i); for (int j = 0; j < N; j++){ if (i == j) continue; move_inside(j); int curCount = press_button(); move_outside(j); if (curCount > 1) count++; } ans = min(ans, count); move_outside(i); } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...