Company: goldman sachs
Difficulty: medium
Warehouse Bag Capacity Check You receive an order containing `N` items. The `i`-th item has weight `K[i]` kilograms. The customer supplied `B` shopping bags, and each bag can carry at most 10 kilograms. Items may be placed in any bags and a bag may contain multiple items. Print `Yes` if all items can be packed into the supplied bags; otherwise print `No`. Input Format The first line contains `N`. The second line contains `N` integers `K[i]`. The third line contains `B`. Output Format Print `Yes` or `No`. Constraints `1 <= N <= 1000`, `1 <= K[i] <= 10`, `1 <= B <= 100`. Notes The source specifies only each bag's total 10 kg capacity. Therefore the decision is based on total item weight versus `10 * B`.