제출 #643632

#제출 시각아이디문제언어결과실행 시간메모리
643632Vanilla드문 곤충 (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...