You work in a supermarket and you need to optimize the work of the box office. During the day, a different number of buyers is suitable for the cash desks, and each of them spends different times on scanning and paying for their purchases. Your task is to calculate how much time it will take to serve all buyers if they are distributed at the cash desks.
Input format
customers -a list of natural numbers representing the time that each client spends on ordering an order. & nbsp; Clients.
rn
cash desks -a natural number that is the number of cash desks
Output format
The total time required to serve all customers
Hint
There will be no clue here, decide for yourself!