My issue
I CAN’T FIND THE ERROR IN MY CODE WHICH IS LEADING TO WRONG OUTPUT
My code
# cook your dish here
T=int(input(""))
l=[]
for i in range(T):
N,X=map(int, input().split())
for j in range(N):
S,R=map(int, input().split())
if S<=X:
l.insert(-1,R)
print(max(l))
Problem Link: CodeChef: Practical coding for everyone