##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
You are given people, numbered from to .
Person has an integer . They are happy only if the group containing them has at least people.
You want to form some pairwise disjoint groups. Each person can be used in at most one group, and some people may be left unused.
A group is good if every person in it is happy.
Find the maximum possible number of good groups.
Each person can be used as a separate group of size , so we can make good groups.
One optimal grouping is and . The first group has size , and the second group has size , so all used people are happy.
One optimal grouping is , , and . Their sizes are , , and , and every person in these groups has a requirement at most the size of their group.