Problem C
Taking Out the Trash
Peter has way too much trash and he needs to take it all out.
Specifically, there are
Input
The input starts with two integers
The next line contains
Output
Output the minimum number of trips Peter needs to make to take out all the trash.
Sample Input 1 | Sample Output 1 |
---|---|
4 1000 100 900 200 900 |
3 |
Sample Input 2 | Sample Output 2 |
---|---|
4 10 1 2 3 4 |
2 |