Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is it possible to assign the first k smallest tasks to the workers?
How can you efficiently try every k?
Solve with full IDE support and test cases