what's wrong? why is codechef giving nzec runtime error on reading user inputs, i tried a few languages and i am getting nzec in each of them

t = int(input())
for _ in range(t):
p,m = map(int, input().split())
check = m*2
win=0
if(p<=m):
win=0
elif(p == check):
win = m
elif(p<check):
win = p//m
print(win)

It would be helpful if you could share the link to the problem and your submission.

1 Like

If using codechef IDE, make sure to first give custom input and then click run.

1 Like