CHEFGAME-Wrong Answer

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


[1]


  [1]: http://www.codechef.com/viewsolution/2285768

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.

@jaskaran_1 Check it out CHEFGAME-WA - general - CodeChef Discuss

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

http://www.codechef.com/viewsolution/2293932

Do NOT ask same question several times !