Sponsored
Use these hints if you're stuck. Try solving on your own first.
Binary search on the answer. We need a function possible(capacity) which returns true if and only if we can do the task in D days.
Solve with full IDE support and test cases