Any body can tell at witch test case i am getting wa ans

question->CodeChef: Practical coding for everyone
sol->CodeChef: Practical coding for everyone
i have trying find out wht is wa with my code please help at witch test case i am getting wa ans

Try this.

1
3 1
4 7 4

correct output is 2 but your code prints 3

1 Like

Can you explain your approach

in begging i try to make all chocolate as equal so latter i can distribute any chocolate