Help me in solving AGELIMIT problem

My issue

server problem

My code

# cook your dish here
TC=int(input())
for  t in  range(TC):
     x,y,a=map(int,input().split())
if x<=a<y:
    print("YES")
else:
    print("NO")

Problem Link: AGELIMIT Problem - CodeChef

@bandinaveen
Your implementation is not right.
U have to do it like this.

t=int(input())
for x in range(t):
    a,b,c=map(int,input().split())
    if(c>=a and c<b):
        print("YES")
    else:
        print("NO")