CHEFGAME-Wrong Answer

Getting WA.But am not able to work out any corner cases.Can somebody give me some test cases.Help?



It got WA on the very first test file, which is just random maxtest. Have a look at the editorial and be carefull with overflowing.

@rubanenko I still can’t figure out where am I going wrong.I don’t think there seems to be an overflow.

@jaskaran_1 Check it out

Do NOT ask same question several times !