Help me in solving JERRYCHASE problem

My issue

My code

# cook your dish here
# Function to determine if Tom can catch Jerry
def can_catch_jerry(jerry_speed, tom_speed):
    if jerry_speed <= tom_speed:
        return "YES"
    else:
        return "NO"

# Read the number of test cases
num_test_cases = int(input())

# Iterate through each test case
for _ in range(num_test_cases):
    jerry_speed, tom_speed = map(int, input().split())
    result = can_catch_jerry(jerry_speed, tom_speed)
    print(result)

Problem Link: JERRYCHASE Problem - CodeChef

@deepika_2105
In your code, the case when speed of both are equal returns YES, whereas it should have been NO, as shown in problem statement example.

By simple removing the equal condition, it should work.

Here is my code for reference.

# cook your dish here
for i in range(int(input())):
    x,y=map(list(int(input())))
    if(y>x):
        print("yes")
    else:
        print("no")