Submission #643632

#TimeUsernameProblemLanguageResultExecution timeMemory
643632VanillaRarest Insects (IOI22_insects)C++17
0 / 100
1 ms228 KiB
#include <bits/stdc++.h> #include "insects.h" using namespace std; int min_cardinality(int n) { vector <bool> vis (n); move_inside(0); vis[0] = 1; for (int i = 1; i <= n; i++){ int d = (i == 1); for (int j = 0; j < n; j++){ if (vis[j]) continue; if (press_button() == i + 1) { move_outside(j); d++; } else vis[j] = 1; } if (d != i) return i-1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...