correct ouput but code wrong .pls help

pls in this question BUYING2 Problem - CodeChef
i did everything correct and i am getting correct ouput but still the code is wrong according to codechef .Can anyone tell me what’s my mistake?
My code is this CodeChef: Practical coding for everyone

  1. You are putting the wrong condition for t. t >=1 && t <= 20.

  2. You are not printing output on next line if s%x==0