Feedback for CENS20D problem

Problem Link: CENS20D Problem - CodeChef

Feedback this problem has a bug i guess,when i run it other offline and online compilers its running perfectly fine for the test cases given and prints the output as expected,but when i run it on the platform,it only shows 0 as output