Help me in solving SMARTER problem

My issue

Unable to understand how to approach this problem

My code

# cook your dish here
t=int(input())
for i in range(t):
    L,V1,V2=map(int,input().split())
    a,b=map(int,input())
    a=L//V1
    b=L//V2
    if(a<b):
       print ("win")
    else:
        print("-1")
    
    

Problem Link: SMARTER Problem - CodeChef

@madhusuja2004
Plzz refer the following solution for better understanding of the logic.

# cook your dish here
import math
T = int(input())

for i in range(T):
    L, V1, V2 = map(int, input().split())
    
    t1 = math.ceil(L / V1)
    t2 = math.ceil(L / V2)

    if t1 == t2:
        print(-1)
    elif(t1-1 == t2):
        print(0)
    else:
        print(t1-t2-1)
    ```