Problem link: http://www.codechef.com/problems/LEBOMBS/
My solution: http://www.codechef.com/viewsolution/3800311
I found the question quite straight forward and my logic seems quite alright to me. Yet I am getting a WA. I think I am missing out something. Could someone please give me a hint?