Please help . Getting Wrong answers for even test case!!! link to my code → lU40Sl - Online C++0x Compiler & Debugging Tool - Ideone.com
4 Likes
http://www.codechef.com/viewsolution/2174270
just do a diff… its your code with correction…
a couple of bad initialization and wrong variable output in the end and a wrong data type for ways(shd be long long int)
2 Likes
Thank you very much. My bad …did silly mistakes.