# https://www.codechef.com/CROS2020/problems/COCR105

what is wrong in this solution?
`# 6

# 15 21

t = int(input())
for i in range(0,t):
l,r = map(int,input().split())
count=0

``````if(l<r):
list1=[]
for i in range(l,r+1):
list1.append(i)
count+=2
count=count-2
#     print(count)
if(2 in list1 and 3 in list1 and list1[len(list1)-1]!=3):
count-=1
if(14 in list1 and 15 in list1 and list1[len(list1)-1]!=15):
count-=1
if(8 in list1 and 9 in list1 and list1[len(list1)-1]!=9):
count-=1
if(20 in list1 and 21 in list1 and list1[len(list1)-1]!=21):
count-=1

elif(r<l):
list1=[]
for i in range(0,r+1):
list1.append(i)
count+=2
for i in range(l,24):
list1.append(i)
count+=2
count=count-2
``````

# print(list1)

``````    if(2 in list1 and 3 in list1 and list1[len(list1)-1]!=3):
count-=1
if(14 in list1 and 15 in list1 and list1[len(list1)-1]!=15):
count-=1
if(8 in list1 and 9 in list1 and list1[len(list1)-1]!=9):
count-=1
if(20 in list1 and 21 in list1 and list1[len(list1)-1]!=21):
count-=1
else:
count=0

print(count)

```````

oh understood, I wasn’t covering the corner test cases of l=3,r=3 kind of… got correct ans thankss