ZhenlongDai/ACPR huggingface dataset:
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if v <= w:
    print("NO")
elif int((b-a)/(v-w)) > t:
    print("NO") 
else:
    print("YES")

Failing test case input:
1 8
5 2
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())

if v == w:
    print("NO")
else:
    if w > v:
        print("NO")
    else:
        if abs(b-a) / (v-w) <= t:    
            print("YES")
        else:
            print("NO")

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
print("NO" if V==W or abs(A-B)/abs(V-W) > T else "YES")



Failing test case input:
-1 3
1 4
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
print("YES" if V > W and abs(A-B)/abs(V-W) <= T else "NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if A + V*T >= B + W*T:
  print("YES")
else:
  print("NO")

Failing test case input:
7 0
-2 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
if abs(A-B) <= (V-W)*T:
  print("YES")
else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def resolve():
    A, V = map(int, input().split())
    B, W = map(int, input().split())
    T = int(input())

    ans = 'NO'

    if V > W:
        t = abs((B-A)/(V-W))
        if t <= T and is_integer(t):
            print(t)
            ans = 'YES'

    print(ans)

def is_integer(n):
    try:
        float(n)
    except ValueError:
        return False
    else:
        return float(n).is_integer()

if __name__ == '__main__':
    resolve()

Failing test case input:
0 3
3 -1
4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
def resolve():
    A, V = map(int, input().split())
    B, W = map(int, input().split())
    T = int(input())

    ans = 'NO'

    if V > W:
        if A > B:
            t = (B-A)/(W-V)
        else:
            t = (B - A) / (V - W)

        if t <= T:
            ans = 'YES'

    print(ans)

if __name__ == '__main__':
    resolve()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a = list(map(int,input().split()))
b = list(map(int,input().split()))
T = int(input())

lon = abs(a[0]-b[0])
if a[1]*T - b[1]*T >= lon :
    print("Yes")
else :
    print("No")

Failing test case input:
0 9
0 4
2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a = list(map(int,input().split()))
b = list(map(int,input().split()))
T = int(input())

lon = abs(a[0]-b[0])
if a[1]*T - b[1]*T >= lon :
    print("YES")
else :
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v = map(int,input().split())

b,w  = map(int,input().split())

t = int(input())

d = b-a

if (v-w)*t>=d:
    print("YES")
else:
    print("NO")

Failing test case input:
7 0
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v = map(int,input().split())
 
b,w  = map(int,input().split())
 
t = int(input())
 
d = abs(b-a)
 
if v-w == 0:
    print("NO")

else:
    if (v-w)*t>=d:
        print("YES")
    else:
        print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = [int(v) for v in input().strip().split(" ")]
B, W = [int(v) for v in input().strip().split(" ")]
T = int(input().strip())

if B - A <= (V - W) * T:
    print("YES")
else:
    print("NO")

Failing test case input:
2 -1
-1 -1
5

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = [int(v) for v in input().strip().split(" ")]
B, W = [int(v) for v in input().strip().split(" ")]
T = int(input().strip())

if abs(B - A) <= (V - W) * T:
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v <= w:
    print("No")
elif a < b and a + v*t < b + w*t:
    print("No")
elif a > b and a - v*t > b - w*t:
    print("No")
else:
    print("Yes")


Failing test case input:
0 9
0 4
2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v <= w:
    print("NO")
elif t < abs(a - b) / abs(v - w):
    print("NO")
else:
    print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v =  map(int, input().split())
b,w =  map(int, input().split())
t = int(input())

if abs(w*t+b)-abs(v*t+a) >=0:
    print("NO")
else:
    print("YES")

Failing test case input:
7 0
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v =  map(int, input().split())
b,w =  map(int, input().split())
t = int(input())

if v*t - w*t >= abs(a-b):
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=(int(x) for x in input().split())
c,d=(int(x) for x in input().split())
g=int(input())
f=b-d
e=a-c
if(f*g>e):
    print("YES")
else:
    print("NO")


Failing test case input:
0 6
5 0
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b=(int(x) for x in input().split())
c,d=(int(x) for x in input().split())
g=int(input())
f=b-d
if(a>=c):
    e=a-c
elif(c>a):
    e=c-a
if(f*g>=e):
    print("YES")
else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V*T >= (B - A) + (T*W):
    print('YES')
else:
    print('NO')

Failing test case input:
2 -1
-1 -1
5

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if V*T >= abs(B - A) + (T*W):
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, S_A = map(int, input().split(' '))
B, S_B = map(int, input().split(' '))
T = int(input())


is_catchable = (S_A * T + A) >= (S_B * T + B)
if is_catchable:
    print('YES')
else:
    print('NO')




Failing test case input:
5 0
-1 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, S_A = map(int, input().split(' '))
B, S_B = map(int, input().split(' '))
T = int(input())

if A < B:
    is_catchable = S_A * T + A >= S_B * T + B
else:
    is_catchable = -1 * S_A * T + A <= -1 * S_B * T + B

if is_catchable:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def calc(oniend, kid , pase):
  if (pase <= 0) or ((oniend * pase) < kid):
    return "NO"
  
  else:
    return "YES"

in1 = input().split()
in2 = input().split()
in3 = input()
oni = int(in1[0])
onispeed = int(in1[1])
kid = int(in2[0])
kidspeed = int(in2[1])
time = int(in3)

pase = onispeed - kidspeed
oniend = (pase * time) + oni

if (pase <= 0) or (oniend < kid):
  print("NO")
elif ((oniend - kid) % pase) == 0:
  print("YES")



Failing test case input:
0 6
5 -1
2

Expected output:
YES


Actual output:

Fixed submission (verdict: Accepted):
in1 = input().split()
in2 = input().split()
in3 = input()
oni = int(in1[0])
onispeed = int(in1[1])
kid = int(in2[0])
kidspeed = int(in2[1])
time = int(in3)
pase = onispeed - kidspeed
flg = True 
if kid - oni < 0:
  flg = False 

if flg:
  oniend = (pase * time) + oni
  if (pase <= 0) or (oniend < kid):
    print("NO")  
  else:
    print("YES")
else:
  oniend = oni - (pase * time)
  if (pase <= 0) or (oniend > kid):
    print("NO")  
  else:
    print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
c = 1
if a > b:
    c = -1

if (c == 1 and a + c*v*t >= b + c*w*t) or (c == -1 and a + c*v*t <= b + c*w*t):
    print("Yes")
else:
    print("No")

Failing test case input:
0 3
0 4
2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if a <= b and a + v*t >= b + w*t:
    print("YES")
elif a > b and a - v*t <= b - w*t:
    print("YES")
else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int, input().split())
b, w = map(int, input().split())

t = int(input())

if abs(a - b) + (w * t) < (v * t):
    print("YES")
else:
    print("NO")

Failing test case input:
0 3
3 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())

t = int(input())

if abs(a - b) + (w * t) <= (v * t):
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):

import sys
input = sys.stdin.readline
ipnl = lambda n: [int(input()) for _ in range(n)]
inp = lambda :int(input())
ip = lambda :[int(w) for w in input().split()]

a,v = ip()
b,w = ip()
t = inp()
if (a + v*t) >= (b + w*t):
    print("YES")
else:
    print("NO")

Failing test case input:
11 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

import sys
input = sys.stdin.readline
ipnl = lambda n: [int(input()) for _ in range(n)]
inp = lambda :int(input())
ip = lambda :[int(w) for w in input().split()]

a,v = ip()
b,w = ip()
t = inp()
if a < b:
    if (a + v*t) >= (b + w*t):
        print("YES")
    else:
        print("NO")
else:
    if (a - v*t) <= (b - w*t):
        print("YES")
    else:
        print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def solve(a, v, b, w, t):
    return "YES" if 0 < (v-w) and abs(b-a) / (v-w) < t else "NO"

a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
print(solve(a, v, b, w, t))

Failing test case input:
3 -1
-2 -2
5

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
def solve(a, v, b, w, t):
    return "YES" if 0 < (v-w) and abs(b-a) / (v-w) <= t else "NO"

a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
print(solve(a, v, b, w, t))

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if abs(v-w)*t<abs(a-b):
  print("NO")
else:
  print("YES")


Failing test case input:
7 -1
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if (v-w)*t<abs(a-b):
  print("NO")
else:
  print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
dv = V - W
dist = abs(B - A)
if dv * T > dist:
    print("YES")
else:
    print("NO")

Failing test case input:
0 3
3 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
dv = V - W
dist = abs(B - A)
if dv*T >= dist:
        print("YES")
else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if B-A+(W-V)*T > 0:
  print("NO")
else:
  print("YES")


Failing test case input:
7 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
if abs(B-A)+(W-V)*T > 0:
  print("NO")
else:
  print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if B > A:
    Dis = B - A
    VtoW = V - W
else:
    Dis = A - B
    VtoW = W - V

result = VtoW * T

if Dis <= result:
    print('YES')
else:
    print('NO')

Failing test case input:
5 0
-1 2
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if B > A:
    Dis = B - A
    VtoW = V - W
else:
    Dis = A - B
    VtoW = V -W

result = VtoW * T

if Dis <= result:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

answer=0
for t in range(1,T+1):
    a=A+V*t
    b=B+W*t
    if a==b:
        answer=+1
        break

if answer==0:
    print('NO')
else:
    print('YES')
    

Failing test case input:
0 2
5 -1
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

if W>=V:
    print('NO')
else:
    if (V-W)*T>=abs(B-A):
        print('YES')
    else:
        print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = [int(a) for a in input().split()]
b, w = [int(a) for a in input().split()]
t = int(input())


distance = abs(b-a)

ds = v - w


ans = ""
if (ds * t) <= (distance):
  ans = "NO"
else:
  ans = "YES"
print(ans)


Failing test case input:
0 3
3 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, v = [int(a) for a in input().split()]
b, w = [int(a) for a in input().split()]
t = int(input())


distance = abs(b-a)

ds = v - w


ans = ""
if (ds * t) < (distance):
  ans = "NO"
else:
  ans = "YES"
print(ans)

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from collections import *
from math import *

a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
x = a+v*t
y = b+w*t
if(x >= y):
	print("YES")
else:
	print("NO")

Failing test case input:
7 0
-2 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
from collections import *
from math import *

a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if(a < b):
	x = a+v*t
	y = b+w*t
	if(x >= y):
		print("YES")
	else:
		print("NO")
else:
	x = a-v*t
	y = b-w*t
	if(x <= y):
		print("YES")
	else:
		print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if W-V == 0 or abs(A-B)/abs(W-V) > T:
    print('NO')
else:
    print('YES')

Failing test case input:
1 0
-1 12
19

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if W>=V or abs(A-B)/abs(W-V) > T:
    print('NO')
else:
    print('YES')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

flag=True
if v<=w:
    flag=False
elif a>b:
    if (a-b)%(v-w)!=0 or (a-v*t<=b-w*t):
        flag=False
elif a<b:
    if (b-a)%(v-w)!=0 or (a+v*t<=b+w*t):
        flag=False

print('YES' if flag else 'NO')

Failing test case input:
1 5
2 -1
4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if v<=w:
    print('NO')
elif a<b:
    if (a+v*t)>=(b+w*t):
        print('YES')
    else:
        print('NO')
else:
    if (a-v*t)<=(b-w*t):
        print('YES')
    else:
        print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
D = B - A
if (V - W)*T >= T:
    print("YES")
else:
    print("NO")


Failing test case input:
-1 3
3 2
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
D = abs(B - A)
if (V - W)*T >= D:
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int,input().split())
b, w = map(int,input().split())
t = int(input())

x = v - w
y = b - a

z = x * t

if y < z:
  print("NO")
else:
  print("YES")




Failing test case input:
2 9
2 4
1

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

x = abs(a - b)
y = v - w
z = y * t

if z >= x:
  print("YES")
  
else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int,input().split())
b, w = map(int,input().split())
t = int(input())

kyo = abs(b - a)
ti = v - w

if w >= v or kyo % ti !=  0:
    print("NO")
    exit()


if kyo / ti <= t:
    print("YES")
else:
    print("NO")

Failing test case input:
0 2
5 0
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, v = map(int,input().split())
b, w = map(int,input().split())
t = int(input())

kyo = abs(b - a)
ti = v - w

if w >= v:
    print("NO")
    exit()


if kyo / ti <= t:
    print("YES")
else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int,input().split(" "))
b,w=map(int,input().split(" "))
t=int(input())

sa=b-a
st=v-w

if sa>st*t:
  print("NO")
else:
  print("YES")

Failing test case input:
4 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v=map(int,input().split(" "))
b,w=map(int,input().split(" "))
t=int(input())

sa=b-a
st=v-w

if sa<0:
  sa=-1*sa
if sa>st*t:
  print("NO")
else:
  print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def calc(oniend, kid , pase):
  if (pase <= 0) or ((oniend * pase) < kid):
    return "NO"
  
  else:
    return "YES"

in1 = input().split()
in2 = input().split()
in3 = input()
oni = int(in1[0])
onispeed = int(in1[1])
kid = int(in2[0])
kidspeed = int(in2[1])
time = int(in3)

pase = onispeed - kidspeed
oniend = (pase * time) + oni

if (pase <= 0) or ((time * pase)+oniend < kid):
  print("NO")
  
else:
  print("YES")



Failing test case input:
-1 3
3 2
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
in1 = input().split()
in2 = input().split()
in3 = input()
oni = int(in1[0])
onispeed = int(in1[1])
kid = int(in2[0])
kidspeed = int(in2[1])
time = int(in3)
pase = onispeed - kidspeed
flg = True 
if kid - oni < 0:
  flg = False 

if flg:
  oniend = (pase * time) + oni
  if (pase <= 0) or (oniend < kid):
    print("NO")  
  else:
    print("YES")
else:
  oniend = oni - (pase * time)
  if (pase <= 0) or (oniend > kid):
    print("NO")  
  else:
    print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if A+V*T >= B+W*T:
  print('YES')
else:
  print('NO')

Failing test case input:
7 0
-1 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
m = abs(A-B)
if V*T >= m+W*T:
    print('YES')
else:
  print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def solve():
    a, v = map(int, input().split())
    b, w = map(int, input().split())
    t = int(input())

    if (v-w) > 0:
        x = (b-a)/(v-w)
    else:
        return 'NO'
    
    if x == int(x) and abs(x) <= t and x*v + a == x*w + b:
        return 'YES'

    return 'NO'


print(solve())


Failing test case input:
1 6
0 4
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
def solve():
    a, v = map(int, input().split())
    b, w = map(int, input().split())
    t = int(input())

    if (v-w) > 0:
        x = (b-a)/(v-w)
    else:
        return 'NO'
    
    if abs(x) <= t:
        return 'YES'

    return 'NO'


print(solve())
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def resolve():
    A, V = [int(i) for i in input().split()]
    B, W = [int(i) for i in input().split()]
    T = int(input())
    if V <= W:
        print("NO")
    elif (V - W) * T < (A - B):
        print("NO")
    else:
        print("YES")

resolve()

Failing test case input:
0 6
5 0
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def resolve():
    A, V = [int(i) for i in input().split()]
    B, W = [int(i) for i in input().split()]
    T = int(input())
    if V <= W:
        print("NO")
    elif (V - W) * T < abs(A - B):
        print("NO")
    else:
        print("YES")

resolve()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
import math
import itertools
import collections

def solve(A,V,B,W,T):
    oni = A + T * V
    es = B + T * W
    return "YES" if(oni >= es) else "NO"
def main():
    A,V = map(int,input().split())
    B,W = map(int,input().split())
    T = int(input())
    
    print(solve(A,V,B,W,T))

if __name__ == "__main__":
    main()


Failing test case input:
7 0
-2 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
import math
import itertools
import collections

def lcm(x, y):
    return (x * y) 
def solve(A,V,B,W,T):
    diff = abs(A - B)
    time = (V - W) * T
    return "YES" if(diff <= time) else "NO"
def main():
    A,V = map(int,input().split())
    B,W = map(int,input().split())
    T = int(input())
    
    print(solve(A,V,B,W,T))

if __name__ == "__main__":
    main()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if B-A>=(V-W)*T:
  print('NO')
  
else:
  print('YES')

Failing test case input:
11 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

if abs(B-A)<=(V-W)*T:
  print('YES')
  
else:
  print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):



A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A < B and (V-W)*T >= B-A and (B-A) % (V-W) == 0 or A == B:
    print('YES')
else:
    print('NO')

Failing test case input:
0 6
5 -1
1

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):



A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if (V-W)*T >= abs(B-A):
    print('YES')
else:
    print('NO')
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import itertools
import copy
from collections import deque
import heapq
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
ax = a + v*t
bx = b + w*t
if a < b:
    if ax >= bx:
        print("YES")
    else:
        print("NO")
else:
    if ax <= bx:
        print("YES")
    else:
        print("NO")


Failing test case input:
1 0
-1 12
19

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import itertools
import copy
from collections import deque
import heapq
a,v = map(int,input().split())
b,w = map(int,input().split())
t = int(input())
if a < b:
    ax = a + v*t
    bx = b + w*t
    if ax >= bx:
        print("YES")
    else:
        print("NO")
else:
    ax = a - v*t
    bx = b - w*t
    if ax <= bx:
        print("YES")
    else:
        print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())
if A <= B:
    if A + V * T >= B + W * T:
        print('YES')
    else:
        print('NO')
else:
    if V >= W:
        print('NO')
    elif A + V * T <= B + W * T:
        print('YES')
    else:
        print('NO')

Failing test case input:
7 -1
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())
if A <= B:
    if A + V * T >= B + W * T:
        print('YES')
    else:
        print('NO')
else:
    if A - V * T <= B -  W * T:
        print('YES')
    else:
        print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
 
if(V <= W):
	print("NO")
elif(abs(B - A) >= abs(V - W) * T):
	print("NO")
else:
	print("YES")

Failing test case input:
-1 3
2 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
 
if(V <= W):
	print("NO")
elif(abs(B - A) > abs(V - W) * T):
	print("NO")
else:
	print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = list(map(int, input().strip().split()))
b, w = list(map(int, input().strip().split()))
t = int(input().strip())

if abs(a-b) <= (v-w)*t:
    print('Yes')
else:
    print('No')

Failing test case input:
2 6
0 4
2

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a, v = list(map(int, input().strip().split()))
b, w = list(map(int, input().strip().split()))
t = int(input().strip())

if abs(a-b) <= (v-w)*t:
    print('YES')
else:
    print('NO')
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A ,V = map(int, input().split())
B ,W = map(int, input().split())
T = int(input())

if V <= W:
  print("No")
else:
  if (max(A, B) - min(A, B)) / (V - W) <= T:
    print("Yes")
  else:
    print("No")


Failing test case input:
5 0
-1 2
21

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A ,V = map(int, input().split())
B ,W = map(int, input().split())
T = int(input())

if V <= W:
  print("NO")
else:
  if (max(A, B) - min(A, B)) / (V - W) <= T:
    print("YES")
  else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(rs())
def rs_(): return [_ for _ in rs().split()]
def ri_(): return [int(_) for _ in rs().split()]

A, V = ri_()
B, W = ri_()
T = ri()
print('YES' if (A + (V * T) - B - (W * T)) * (A - B) <= 0 else 'NO')

Failing test case input:
0 3
0 4
2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(rs())
def rs_(): return [_ for _ in rs().split()]
def ri_(): return [int(_) for _ in rs().split()]

A, V = ri_()
B, W = ri_()
T = ri()

if abs(A - B) <= (V - W) * T:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def tag(a,b,v,w,t):
    if w>=v:
        return "NO"
    return "YES"

if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    print(tag(a,b,v,w,t))

Failing test case input:
-1 3
3 2
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def tag(a,b,v,w,t):
    res = (v*t)-(abs(b-a)+(w*t))
    if res>=0:
        return "YES"
    return "NO"

if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    print(tag(a,b,v,w,t))

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T   = int(input())

if V <= W:
    print("No")
elif (abs(A-B)/abs(V-W)) <= T and (abs(A-B)%abs(V-W) == 0):
    print("Yes")
else:
    print("No")

Failing test case input:
1 6
10 3
-4

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T   = int(input())

if V <= W:
    print("NO")
elif (abs(A-B)/abs(V-W)) <= T:
    print("YES")
else:
    print("NO")
Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

d = B - A
s = (V - W) * T

if (d > 0) & (s >= 0):
  if d <= s:
    print("YES")
  else:
    print("NO")
elif (d < 0) & (s >= 0):
  print("NO")
elif (d > 0) & (s < 0):
  print("NO")
else:
  if d >= s:
    print("YES")
  else:
    print("NO")

Failing test case input:
0 3
0 4
2

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A < B:
  A_P = A + V * T
  B_P = B + W * T
  if A_P >= B_P:
    print("YES")
  else:
    print("NO")
else:
  A_P = A - V * T
  B_P = B - W * T
  if A_P <= B_P:
    print("YES")
  else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v = map(int, input().split())  
b,w= map(int, input().split())  
t=int(input())
ans='No'

if w>v:
    ans='No'
elif w==v:
    if a==b:
        ans='Yes'
    else:
        ans='No'
else:
    if abs(a-b)>t*abs(v-w):
        ans='No'
    else :
        if abs(a-b)%abs(v-w)==0:
            ans='Yes'
        else:
            ans='No'

print(ans)




Failing test case input:
7 0
-1 0
9

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,v = map(int, input().split())  
b,w= map(int, input().split())  
t=int(input())

ans='NO'
kyo=abs(a-b)
so=abs(v-w)

if w>v:
    ans='NO'
elif w==v:
    ans='NO'
elif w<v:
    if kyo>t*so:
        ans='NO'
    elif kyo<=t*so:
        ans='YES'
        
            
        
            

print(ans)

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v <= w:
  print('NO')
else:
  diff_start = b - a
  diff_speed = v - w
  if diff_start < diff_speed*t:
    print("YES")
  else:
    print("NO")

Failing test case input:
0 3
3 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())

if v <= w:
  print('NO')
else:
  diff_start = abs(b - a)
  diff_speed = v - w
  if diff_start <= diff_speed*t:
    print("YES")
  else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,c=map(int,input().split())
b,d=map(int,input().split())
T=int(input())
if a<b:
  if a+(c*T)>=b+(d*T) and (b-a)%(d-c)==0:
    print("YES")
  else:
    print("NO")
else:
  if a+(c*T)<=b+(d*T) and (a-b)%(c-d)==0:
    print("YES")
  else:
    print("NO")

Failing test case input:
1 9
0 2
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,c=map(int,input().split())
b,d=map(int,input().split())
T=int(input())
if a<b:
  if a+(c*T)>=b+(d*T):
    print("YES")
  else:
    print("NO")
else:
  if a-(c*T)<=b-(d*T):
    print("YES")
  else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v = map(int,input().split())
b,w = map(int,input().split())
t=int(input())

if abs(b - a) <= (v - w) * t:
    print('YES')
else:
    print('No')

Failing test case input:
1 0
3 8
3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,v = map(int,input().split())
b,w = map(int,input().split())
t=int(input())

if abs(b - a) <= (v - w) * t:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())
dist=b-a
dist2=(v-w)*t
if dist>dist2:
	print("NO")
else:
	print("YES")

Failing test case input:
7 0
-2 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())
dist=abs(b-a)
dist2=(v-w)*t
if dist>dist2:
	print("NO")
else:
	print("YES")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = [int(v) for v in input().split(" ")]
B, W = [int(v) for v in input().split(" ")]
T = [int(v) for v in input().split(" ")][0]

if A+V*T >= B+W*T:
  print("YES")
else:
  print("NO")

Failing test case input:
11 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = [int(v) for v in input().split(" ")]
B, W = [int(v) for v in input().split(" ")]
T = [int(v) for v in input().split(" ")][0]

 
if abs(A-B) <= (V-W)*T :
  print("YES")
else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

a,v = map(int, input().split())
b,w = map(int, input().split())
t = int(input())

if a < b:
    result = 'YES' if a + t * v >= b + t * w else 'NO'
else:
    result = 'YES' if a + t * v <= b + t * w else 'NO'

print(result)

Failing test case input:
0 6
0 4
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):

a,v = map(int, input().split())
b,w = map(int, input().split())
t = int(input())

if a < b:
    result = 'YES' if a + t * v >= b + t * w else 'NO'
else:
    result = 'YES' if a - t * v <= b - t * w else 'NO'

print(result)

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def tag(a,b,v,w,t):
    res = ((v*t)-(abs(b-a))+(w*t))
    if res>=0:
        return "YES"
    return "NO"

if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    print(tag(a,b,v,w,t))

Failing test case input:
1 1
2 12
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def tag(a,b,v,w,t):
    res = (v*t)-(abs(b-a)+(w*t))
    if res>=0:
        return "YES"
    return "NO"

if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    print(tag(a,b,v,w,t))
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

distance = abs(B - A)
hayasa = V - W

if distance == 0:
  print('YES')
elif hayasa > 0 and hayasa * T > distance:
  print('YES')
else:
  print('NO')

Failing test case input:
0 3
0 4
1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V = map(int, input().split())
B,W = map(int, input().split())
T = int(input())

distance = abs(B - A)
hayasa = V - W

if hayasa > 0 and hayasa * T >= distance:
  print('YES')
else:
  print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

x = A + V * T
y = B + W * T

if A < B:
  if x >= y:
    print('YES')
  else:
    print('NO')
else:
  if x > y:
    print('NO')
  else:
    print('YES')


Failing test case input:
1 9
0 2
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

x = A + V * T
y = B + W * T

z = A - V * T
w = B - W * T

if A < B:
  if x >= y:
    print('YES')
  else:
    print('NO')
else:
  if z <= w:
    print('YES')
  else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ds = w - v
dd = abs(b - a)

if ds >= 0:
    print('NO')
    exit()
else:
    ans = dd / ds
    if ans <= t:
        print('YES')
        exit()

print('NO')


Failing test case input:
1 6
5 3
-1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):

a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
ds = w - v
dd = abs(b - a)

if ds >= 0:
    print('NO')
    exit()
else:
    ans = dd / ds
    if -(ans) <= t:
        print('YES')
        exit()

print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = input().split()
B,W = input().split()

A = int(A)
V = int(V)
B = int(B)
W = int(W)

T = int(input())

distance = B-A
closer = W-V

def solve():
    if closer >= 0:
        print("No")
        return
    if distance + (closer * T) <= 0:
        print("Yes")
        return
    else:
        print("No")
        return
solve()


Failing test case input:
0 0
5 6
3

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
A,V = input().split()
B,W = input().split()

A = int(A)
V = int(V)
B = int(B)
W = int(W)

T = int(input())



def solve():

    distance = abs(B-A)
    closer = abs(V-W)

    if V <= W:
        print("NO")
        return

    time = distance/closer
    if time <= T:
        print("YES")
        return
    else:
        print("NO")
        return


solve()
Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())

    a += 10**9
    b += 10**9
    if v == w:
        print('NO')
        return 0
    if b-a > 0 and w-v > 0:
        print('NO')
        return 0
    if abs((a-b)/(v-w)) <= t:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()


Failing test case input:
1 1
1 12
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def main():
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())

    if v == w:
        print('NO')
        return 0
    if v-w < 0:
        print('NO')
        return 0
    if abs(b-a)/(v-w) <= t:
        print('YES')
    else:
        print('NO')

if __name__ == '__main__':
    main()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V=map(int,input().split())
B,W=map(int,input().split())
t=input()
T=int(t)

if abs(B-A)+(V-W)*T <=0:
  print('YES')
else:
  print('NO')


Failing test case input:
0 2
5 0
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A,V=map(int,input().split())
B,W=map(int,input().split())
t=input()
T=int(t)

if abs(B-A)-(V-W)*T <=0:
  print('YES')
else:
  print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())

if c-a<=e*(b-d):
    print('YES')
else:
    print('NO')

Failing test case input:
2 -1
-1 -1
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
c,d=map(int,input().split())
e=int(input())

n=abs(c-a)
m=b-d
if m<=0:
    print('NO')
elif e>=n/m:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())

if(V <= W):
  print("NO")
else:
  x = (B-A)/(V-W)
  print(x)
  if(x <= T and int(x)==x):
    print("YES")
  else:
    print("NO")

  
    
    

Failing test case input:
2 6
0 4
2

Expected output:
YES


Actual output:
-1.0
YES


Fixed submission (verdict: Accepted):
A, V = map(int,input().split())
B, W = map(int,input().split())
T = int(input())

if(V <= W):
  print("NO")
else:
  if(abs(B-A) <= T*(V-W)):
    print("YES")
  else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if a<b and b-a <= (v-w)*t:
    print ("YES")
else:
    print("NO")


Failing test case input:
1 9
0 2
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if abs(b-a)<= (v-w)*t:
    print ("YES")

else:
    print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v = map(int, input().split())
b,w = map(int, input().split())
t=int(input())

rev = v-w
if rev*t >= (b-a):
    print("YES")
else:
    print("NO")

Failing test case input:
7 0
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v = map(int, input().split())
b,w = map(int, input().split())
t=int(input())

rev = v-w
if rev*t >= abs(b-a):
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if v==w or w>v:
    print('NO')
    sys.exit()
else:
    tp=(b-a)/(v-w)
    tm=(a-b)/(v-w)
    if b>a:
        if t>tp:
            print('YES')
        else:
            print('NO')
    else:
        if t>tm:
            print('YES')
        else:
            print('NO')



Failing test case input:
0 3
3 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
if v==w or w>v:
    print('NO')
    sys.exit()
else:
    tp=(b-a)/(v-w)
    tm=(a-b)/(v-w)
    if b>a:
        if t>=tp:
            print('YES')
        else:
            print('NO')
    else:
        if t>=tm:
            print('YES')
        else:
            print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
  a, v = map(int,input().split())
  b, w = map(int,input().split())
  t = int(input())
  ans = True
  vect = v - w
  if a == b:
    ans = True
  elif vect <= 0:
    ans = False
  else:
    if vect * t > abs(a - b):
      ans = True
    else:
      ans = False
  if ans:
    print("YES")
  else:
    print("NO")   
            


main()

Failing test case input:
0 3
0 4
1

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
def main():
  a, v = map(int,input().split())
  b, w = map(int,input().split())
  t = int(input())
  ans = True

  if v - w < 0: 
    ans  = False
  elif (v - w) * t >= abs(a - b):
    ans = True
  else:
    ans = False
      
  if ans:
    print("YES")
  else:
    print("NO")            


main()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if (v-w)*t>abs(a-b):
  print("NO")
else:
  print("YES")


Failing test case input:
1 4
2 2
4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
a,v=map(int, input().split())
b,w=map(int, input().split())
t=int(input())

if (v-w)*t<abs(a-b):
  print("NO")
else:
  print("YES")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

if A == B:
    print('YES')
else:
    if A + V * T >= B + W * T:
        print('YES')
    else:
        print('NO')

Failing test case input:
7 0
-1 0
9

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())

a_dis = V * T
b_dis = W * T
dis_diff = abs(B - A)

if dis_diff <= a_dis - b_dis:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
x=abs(v-w)*t
if x>=abs(a-b):
  print('YES')
else:
  print('NO')

Failing test case input:
1 1
2 12
10

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())
x=(v-w)*t
if x>=abs(a-b):
  print('YES')
else:
  print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
d=B-A
v=V-W
if B*W<0:
  print("NO")
elif v==0:
  print("NO")
elif d/v<=T:
  print("YES")
else:
  print("NO")

Failing test case input:
0 1
1 6
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())
if V<=W:
  print("NO")
  exit()
d=abs(B-A)
v=V-W
if d/v<=T:
  print("YES")
else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int,input().split())
b, w = map(int,input().split())
T = int(input())

if a<b:
    A = a + v * T
    B = b + w * T
    if A>= B:
        print("Yes")
    else:
        print("NO")
else:
    A = a - v*T
    B = b - w * T
    if A <= B:
        print("Yes")
    else:
        print("NO")



Failing test case input:
1 9
1 1
1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
a, v = map(int,input().split())
b, w = map(int,input().split())
T = int(input())

if a<b:
    A = a + v * T
    B = b + w * T
    if A>= B:
        print("YES")
    else:
        print("NO")
else:
    A = a - v*T
    B = b - w * T
    if A <= B:
        print("YES")
    else:
        print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
S=V-W

if S <=0:
   print("NO")
elif (A-B)/S<=T:
   print("YES")
else:
   print("NO")

Failing test case input:
1 6
5 0
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = map(int, input().split())
B, W = map(int, input().split())
T = int(input())
S=V-W
d=abs(A-B)
if S <=0:
   print("NO")
elif d<=T*S:
   print("YES")
else:
   print("NO")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

AB = abs(A - B)
VW = V - W

if VW == 0:
  print("No")
  
elif AB <= VW * T:
  print("Yes")

else:
  print("No")

Failing test case input:
1 9
1 1
1

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())

AB = abs(A - B)
VW = V - W

if VW == 0:
  print("NO")
  
elif AB <= VW * T:
  print("YES")

else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = input().split()
B, W = input().split()
T    = input()

A = int(A)
V = int(V)
B = int(B)
W = int(W)
T = int(T)

result = (B - A) + (W * T) - V * T

if result <= 0:
    print('YES')
else:
    print('NO')

Failing test case input:
7 0
-2 0
21

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A, V = input().split()
B, W = input().split()
T    = input()

A = int(A)
V = int(V)
B = int(B)
W = int(W)
T = int(T)

result = abs((B - A)) + (W * T) - V * T

if result <= 0:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A,V=map(int,input().split())
B,W=map(int,input().split())
T=int(input())

if V <= W:
  print('NO')
  exit()
else:
  soutaikyori=abs(A-B)
  soutaiV=V-W
  
  if soutaikyori * soutaiV > T:
    print("NO")
    exit()
  else:
  
    
    print("YES")
    exit()
    

Failing test case input:
-1 3
3 -1
4

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A,V=map(int,input().split())
B,W=map(int,input().split())
T = int(input())


if V <= W:
  print('NO')
  exit()
else:
  soutaikyori=abs(A-B)
  soutaiV=V-W
  
  if soutaikyori / soutaiV > T:
    print("NO")
    exit()
  else:
    print("YES")
    exit()

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if w == v:
    u = abs(a - b)
else:
    u = abs(a - b)/(w - v) 
if u <= t:
    print('YES')
else:
    print('NO')


Failing test case input:
-1 3
2 4
3

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if abs(a - b) <= (v -w) * t:
    print('YES')
else:
    print('NO')

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if w>=v and abs(b-a)>t*(v-w):
  print('No')
else:
  print('Yes')

Failing test case input:
7 0
-1 0
21

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
a,v=map(int,input().split())
b,w=map(int,input().split())
t=int(input())

if abs(b-a)<=t*(v-w):
  print('YES')
else:
  print('NO')