https://www.codechef.com/UAPRAC/problems/COWA19C

https://www.codechef.com/UAPRAC/problems/COWA19C
can you check why my solution is not working

https://www.codechef.com/UAPRAC/submit/COWA19C