Dumplings | CodeChef

Please explain what is wrong in my code?
https://www.codechef.com/viewsolution/30618088

Note: Po must choose atleast one plate.

for that i can add a condition if difference is 0 then print 1.Am i right?

Yes .

thank you.