Partially correct answer in devu and grapes

https://www.codechef.com/viewsolution/27989708

Consider the testcase where N=100000, K=200000, and all N buckets each start with one grape in them.

1 Like