HEY THIS IS MY SOLTUION . PLS HELP ME TO FIND WHY ITS SHOWING RUNTIME ERROR
https://www.codechef.com/viewsolution/47197553
You are getting runtime error because for N == 1
you are printing the answer 0
and not taking the input for K
queries at all. Also in case N==1
, the answer 0
should be printed a total of K
times.
P.S : You can tag me in a comment under official editorial of the problem (that way relevant discussions remain at one place), no need to create a new Discuss post !!
1 Like
thankyou!.. it working now