Solution help #thenightswatch January lunch time

Plz. Help me…
Why my solution is not accepted for subtask 1 but accepted for subtask 2.
https://www.codechef.com/viewsolution/22657754

Check for case when N=1 and s=0. Your program prints 0 for N=1 irrespective of s.