# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
634090 | 2022-08-23T19:21:58 Z | ikura355 | 드문 곤충 (IOI22_insects) | C++17 | 246 ms | 492 KB |
#include "insects.h" #include <vector> using namespace std; int n; int count_insects(int bound) { vector<int> insects; for (int i = 0; i < n; i++) { move_inside(i); if (press_button() > bound) move_outside(i); else insects.push_back(i); } for (auto i : insects) move_outside(i); return (int)insects.size(); } int min_cardinality(int N) { n = N; int groups = count_insects(1); int l = 2, r = n, ans = 1; while (l <= r) { int mid = (l + r) / 2; if (count_insects(mid) == groups * mid) { ans = mid; l = mid + 1; } else r = mid - 1; } return ans; }
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 208 KB | Output is correct |
2 | Correct | 0 ms | 208 KB | Output is correct |
3 | Correct | 0 ms | 208 KB | Output is correct |
4 | Correct | 1 ms | 208 KB | Output is correct |
5 | Correct | 1 ms | 208 KB | Output is correct |
6 | Correct | 17 ms | 208 KB | Output is correct |
7 | Correct | 14 ms | 208 KB | Output is correct |
8 | Correct | 17 ms | 208 KB | Output is correct |
9 | Correct | 15 ms | 208 KB | Output is correct |
10 | Correct | 15 ms | 208 KB | Output is correct |
11 | Correct | 16 ms | 284 KB | Output is correct |
12 | Correct | 19 ms | 208 KB | Output is correct |
13 | Correct | 14 ms | 208 KB | Output is correct |
14 | Correct | 14 ms | 280 KB | Output is correct |
15 | Correct | 12 ms | 208 KB | Output is correct |
16 | Correct | 14 ms | 208 KB | Output is correct |
17 | Correct | 14 ms | 208 KB | Output is correct |
18 | Correct | 16 ms | 212 KB | Output is correct |
19 | Correct | 18 ms | 212 KB | Output is correct |
20 | Correct | 7 ms | 288 KB | Output is correct |
21 | Correct | 13 ms | 284 KB | Output is correct |
22 | Correct | 12 ms | 212 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 208 KB | Output is correct |
2 | Correct | 0 ms | 208 KB | Output is correct |
3 | Correct | 0 ms | 208 KB | Output is correct |
4 | Correct | 1 ms | 208 KB | Output is correct |
5 | Correct | 1 ms | 208 KB | Output is correct |
6 | Correct | 17 ms | 208 KB | Output is correct |
7 | Correct | 14 ms | 208 KB | Output is correct |
8 | Correct | 17 ms | 208 KB | Output is correct |
9 | Correct | 15 ms | 208 KB | Output is correct |
10 | Correct | 15 ms | 208 KB | Output is correct |
11 | Correct | 16 ms | 284 KB | Output is correct |
12 | Correct | 19 ms | 208 KB | Output is correct |
13 | Correct | 14 ms | 208 KB | Output is correct |
14 | Correct | 14 ms | 280 KB | Output is correct |
15 | Correct | 12 ms | 208 KB | Output is correct |
16 | Correct | 14 ms | 208 KB | Output is correct |
17 | Correct | 14 ms | 208 KB | Output is correct |
18 | Correct | 16 ms | 212 KB | Output is correct |
19 | Correct | 18 ms | 212 KB | Output is correct |
20 | Correct | 7 ms | 288 KB | Output is correct |
21 | Correct | 13 ms | 284 KB | Output is correct |
22 | Correct | 12 ms | 212 KB | Output is correct |
23 | Correct | 63 ms | 296 KB | Output is correct |
24 | Correct | 93 ms | 212 KB | Output is correct |
25 | Correct | 107 ms | 284 KB | Output is correct |
26 | Correct | 116 ms | 276 KB | Output is correct |
27 | Correct | 95 ms | 284 KB | Output is correct |
28 | Correct | 77 ms | 400 KB | Output is correct |
29 | Correct | 92 ms | 208 KB | Output is correct |
30 | Correct | 92 ms | 208 KB | Output is correct |
31 | Correct | 102 ms | 208 KB | Output is correct |
32 | Correct | 118 ms | 208 KB | Output is correct |
33 | Correct | 114 ms | 268 KB | Output is correct |
34 | Correct | 109 ms | 208 KB | Output is correct |
35 | Correct | 90 ms | 268 KB | Output is correct |
36 | Correct | 99 ms | 208 KB | Output is correct |
37 | Correct | 75 ms | 280 KB | Output is correct |
38 | Correct | 115 ms | 208 KB | Output is correct |
39 | Correct | 79 ms | 284 KB | Output is correct |
40 | Correct | 100 ms | 284 KB | Output is correct |
41 | Correct | 87 ms | 284 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 208 KB | Output is correct |
2 | Correct | 0 ms | 208 KB | Output is correct |
3 | Correct | 0 ms | 208 KB | Output is correct |
4 | Correct | 0 ms | 208 KB | Output is correct |
5 | Correct | 1 ms | 208 KB | Output is correct |
6 | Partially correct | 1 ms | 208 KB | Output is partially correct |
7 | Partially correct | 246 ms | 284 KB | Output is partially correct |
8 | Partially correct | 113 ms | 288 KB | Output is partially correct |
9 | Partially correct | 227 ms | 452 KB | Output is partially correct |
10 | Partially correct | 111 ms | 268 KB | Output is partially correct |
11 | Partially correct | 195 ms | 268 KB | Output is partially correct |
12 | Partially correct | 210 ms | 404 KB | Output is partially correct |
13 | Partially correct | 197 ms | 392 KB | Output is partially correct |
14 | Partially correct | 214 ms | 292 KB | Output is partially correct |
15 | Partially correct | 147 ms | 408 KB | Output is partially correct |
16 | Partially correct | 200 ms | 280 KB | Output is partially correct |
17 | Partially correct | 213 ms | 396 KB | Output is partially correct |
18 | Partially correct | 194 ms | 392 KB | Output is partially correct |
19 | Partially correct | 196 ms | 404 KB | Output is partially correct |
20 | Partially correct | 243 ms | 384 KB | Output is partially correct |
21 | Partially correct | 190 ms | 396 KB | Output is partially correct |
22 | Partially correct | 155 ms | 332 KB | Output is partially correct |
23 | Partially correct | 177 ms | 272 KB | Output is partially correct |
24 | Partially correct | 213 ms | 400 KB | Output is partially correct |
25 | Partially correct | 224 ms | 396 KB | Output is partially correct |
26 | Partially correct | 176 ms | 292 KB | Output is partially correct |
27 | Partially correct | 239 ms | 360 KB | Output is partially correct |
28 | Partially correct | 203 ms | 416 KB | Output is partially correct |
29 | Partially correct | 209 ms | 400 KB | Output is partially correct |
30 | Partially correct | 186 ms | 284 KB | Output is partially correct |
31 | Partially correct | 193 ms | 492 KB | Output is partially correct |
32 | Partially correct | 159 ms | 284 KB | Output is partially correct |
33 | Partially correct | 93 ms | 284 KB | Output is partially correct |
34 | Partially correct | 134 ms | 368 KB | Output is partially correct |
35 | Partially correct | 208 ms | 292 KB | Output is partially correct |
36 | Partially correct | 134 ms | 348 KB | Output is partially correct |
37 | Partially correct | 219 ms | 320 KB | Output is partially correct |
38 | Partially correct | 214 ms | 380 KB | Output is partially correct |
39 | Partially correct | 191 ms | 292 KB | Output is partially correct |
40 | Partially correct | 207 ms | 408 KB | Output is partially correct |
41 | Partially correct | 170 ms | 280 KB | Output is partially correct |
42 | Partially correct | 170 ms | 404 KB | Output is partially correct |
43 | Partially correct | 40 ms | 208 KB | Output is partially correct |
44 | Partially correct | 153 ms | 276 KB | Output is partially correct |
45 | Partially correct | 193 ms | 284 KB | Output is partially correct |
46 | Partially correct | 155 ms | 368 KB | Output is partially correct |
47 | Partially correct | 188 ms | 412 KB | Output is partially correct |
48 | Partially correct | 124 ms | 396 KB | Output is partially correct |