Minimum Number of Umbrellas
Given N people and several umbrellas that each can cover a different number of people, find the minimum number of umbrellas needed to exactly cover N people.
Input
N(1 ≤ N ≤ 10000): An integ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
