wa in lebombs

http://www.codechef.com/viewsolution/3269534
ran many test cases gave correct answer but showing wa

//