Problem 2860 · Medium

Happy Students

Choose a group of students so each one is happy: selected students need fewer selected than their value, unselected students need more.

Open the interactive visualisation