| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 54 | 3 | 3 | 16.667% |
Moo U's cafeteria has run out of hay and so must order pizzas for the C (1 ≤ C ≤ 1,000) calves attending Moo U. Conveniently, a large pizza from the local pizzeria, Pizza Farm, serves exactly one calf.
Pizza Farm is willing to make a pizza for each calf, but, due to the size of the order, has three constraints on the order:
The calves at Moo U are very picky when it comes to their pizza toppings. Some calves might not like all of the toppings available. A calf will eat a pizza only she likes every single one of the toppings on that pizza. Determine the maximum number of calves that can be fed.
3 2 1 2 2 1 1 1 1 2
2