Https://ide.codingblocks.com/s/61169

question:https://hack.codingblocks.com/contests/c/380/1559
https://ide.codingblocks.com/s/61169
two test cases passed
in one it is showing tle

Hi AASTHA, please use the below line in your code as soon as you input q.
Please take |q| i.e. if q < 0 then multiply it with -1 and then proceed further.

its not working. plz help

Hi AASTHA, pls change your
while (q - -)
to
while ( q- - && q>-1)
This will work. :slight_smile: