My issue
Hi there I have solved this problem after running it on sample inputs it shows proper outputs but after submitting it, it is showing run-time error I am unable to find any error myself please help me with this…
My code
# cook your dish here
t = int(input())
for i in range(t):
a,b = map(int,input().split())
if a>b:
if a-b>=10:
print(0)
elif a-b<10:
if (b+10-a) < 3:
print(1)
else:
print((b+10-a)//3)
if a<b:
if (b-a)<10 or (b-a)>10:
print((b+10-a)//3)
elif b-a == 10:
print(b+10)//3
Problem Link: Extreme Basketball Practice Coding Problem - CodeChef