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
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.
@rubanenko I still can’t figure out where am I going wrong.I don’t think there seems to be an overflow.
Do NOT ask same question several times !