My issue
I am getting the time limit exceeded result even when I use for loop
My code
# cook your dish here
t=int(input())
for i in range(t):
n,s=[int (x) for x in input().split()]
maxdiff=-1
for i in range(min(n,s)+1):
second=s-i;
l=[i,second]
print(abs(l[0]-l[1]))
Problem Link: CodeChef: Practical coding for everyone