ZhenlongDai/ACPR huggingface dataset:
Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input();print("DH"[a[0]==a[1]])

Failing test case input:
11 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a=input();print("DH"[a[0]==a[2]])

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print('H' if(a==b) else 'N')

Failing test case input:
H L

Expected output:
D


Actual output:
N


Fixed submission (verdict: Accepted):
a,b=input().split()
print('H' if(a==b ) else 'D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()

if b == 'H':
    if a == 'H':
        print('H')
    else:
        print('N')
else:
    if a == 'H':
        print('N')
    else:
        print('H')

Failing test case input:
G H

Expected output:
D


Actual output:
N


Fixed submission (verdict: Accepted):
a,b = input().split()

if b == 'H':
    if a == 'H':
        print('H')
    else:
        print('D')
else:
    if a == 'H':
        print('D')
    else:
        print('H')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print('D') if a=='D' and b=='H' else print('H')

Failing test case input:
F H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split();print('H')if a==b else print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print('H' if(a==b or a == 'H') else 'D')

Failing test case input:
H M

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split()
print('H' if(a==b ) else 'D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,t=input().split()
if a==t:
  print("H")
elif a=="H":
  print("D")
else:
  print("H")

Failing test case input:
5 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,t=input().split()
if a==t:
  print("H")
else:
  print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = [s == "H" for s in input().split()]

print(["D", "H"][A ^ B])

Failing test case input:
9 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
A, B = [s == "H" for s in input().split()]

print(["H", "D"][A ^ B])

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a="H","D"
b="H","D"
if a==b:
    print("H")
else:
    print("D")

Failing test case input:
H Y

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=map(str,input().split())
strings="H","D"
if a==b:
    print("H")
else:
    print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = [x for x in input().split()]
if(a=='H' and b=='H'):
  print('YES')
elif(a=='D' and b=='D'):
  print('YES')
else:
  print('NO')

Failing test case input:
H >

Expected output:
D


Actual output:
NO


Fixed submission (verdict: Accepted):
a,b = [x for x in input().split()]
if(a=='H' and b=='H'):
  print('H')
elif(a=='D' and b=='D'):
  print('H')
else:
  print('D')
Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print('H' if (a=='D')^(b=='D') else 'D')

Failing test case input:
D H

Expected output:
D

Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split()
print('D' if (a=='H')^(b=='H') else 'H')

Problem: p03777
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = list(input())

if s[0] == s[1]:
  print("H")
else:
  print("D")

Failing test case input:
11 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
s = list(input())

if s[0] == s[2]:
  print("H")
else:
  print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
str = input().split(' ')
a = str[0]
b = str[1]

res = 'H'
if a != b:
  res = 'D'
else:
  res = 'H'

Failing test case input:
M H

Expected output:
D


Actual output:

Fixed submission (verdict: Accepted):
str = input().split(' ')
a = str[0]
b = str[1]

res = 'H'
if a != b:
  res = 'D'
else:
  res = 'H'

print(res)

Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = input().split()
if a == b:
  print('D')
else:
  print('H')

Failing test case input:
H @

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a, b = input().split()
if a == b:
  print('H')
else:
  print('D')

Problem: p03777
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = set(input().split())
if len(s)==1:
    print("D")
else:
    print("H")

Failing test case input:
9 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
s = set(input().split())
if len(s)==2:
    print("D")
else:
    print("H")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split();print('D')if a==b else print('H')

Failing test case input:
O H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split();print('H')if a==b else print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()
if (a == 'H') ^ (b == 'H'):
  print('H')
else:
  print('D')


Failing test case input:
H 5

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b = input().split()
if (a == 'H') ^ (b == 'H'):
  print('D')
else:
  print('H')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
H,D = input().split()
if H == D:
    print(H)
else:
    print(D)

Failing test case input:
H O

Expected output:
D


Actual output:
O


Fixed submission (verdict: Accepted):
H,D = input().split()
if H == D:
    print("H")
else:
    print("D")
Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=input().split()
if a=="H":
  print("H")
else:
  if b=="D":
    print("H")
  else:
    print("D")

Failing test case input:
H 5

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split()
if a=="H":
  if b=="H":
    print("H")
  else:
    print("D")
else:
  if b=="D":
    print("H")
  else:
    print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
l_vec = input().split()
def classifier1(l) :
    if ((l[0] == 'H') and (l[1] == 'H')) or ((l[0] == 'D') and (l[1] == 'D')) :
        return 'H'
    else :
        return 'D'
classifier1(l_vec)

Failing test case input:
H ?

Expected output:
D


Actual output:

Fixed submission (verdict: Accepted):
l_vec = input().split()
def classifier1(l) :
    if ((l[0] == 'H') and (l[1] == 'H')) or ((l[0] == 'D') and (l[1] == 'D')) :
        return 'H'
    else :
        return 'D'
print(classifier1(l_vec))

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().split()
if a == b :
    print('H')
else :
    print('T')

Failing test case input:
H >

Expected output:
D


Actual output:
T


Fixed submission (verdict: Accepted):
a, b = input().split()
if a == b :
    print('H')
else :
    print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
x, y = input().split()

if(x != y):
  print("H")
else:
  print("D")

Failing test case input:
H 33

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):

x, y = input().split()

if(x != y):
  print("D")
else:
  print("H")

Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a, b = input().split()
print('H' if a==b else 'NO')

Failing test case input:
G H

Expected output:
D


Actual output:
NO


Fixed submission (verdict: Accepted):
a, b = input().split()
print('H' if a==b else 'D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().split()
if a == 'H':
  print('H')
else:
  if b == ('D'):
    print('H')
  else:
    print('D')

Failing test case input:
H O

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a, b = input().split()
if ((a == 'H' and b == 'H') or (a == 'D' and b == 'D')):
  print('H')
else:
  print('D')

Problem: p03777
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
s = input()

if s == "D D" or "H H":
  print("H")
else:
  print("D")


Failing test case input:
H Y

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
s = input()

if s == "D D" or s == "H H":
  print("H")
else:
  print("D")

Problem: p03777
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
a,b = input().split()

if a == 'D':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Failing test case input:
H 6

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')
Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
if a[0] !=a[2]:
    print("H")
else:
    print("D")

Failing test case input:
H L

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a=input()
if a[0] !=a[2]:
    print("D")
else:
    print("H")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=map(str,input().split())
if a and b == 'H' or a and b == 'D':
  print('H')
else:
  print('D')


Failing test case input:
12 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=map(str,input().split())
if a == b:
  print('H')
else:
  print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = map(str, input().split())

if a == b:
    print("H")
elif not a == b:
    print(a)


Failing test case input:
H Q

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a, b = map(str, input().split())

if a == b:
    print("H")
elif not a == b:
    print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
if a=="H":
    if a=="H":
        print("H")
    else:
        print("D")
else:
    if a=="H":
        print("D")
    else:
        print("H")

Failing test case input:
V H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b=input().split()
if a=="H":
    if b=="H":
        print("H")
    else:
        print("D")
else:
    if b=="H":
        print("D")
    else:
        print("H")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().split()
if (a==b=='H') or (a=='D' and b =='H'):
    print('H')
else:
    print('D')

Failing test case input:
D H

Expected output:
D

Actual output:
H


Fixed submission (verdict: Accepted):
a, b = input().split()
if (a==b=='H') or (a=='D' and b =='D'):
    print('H')
else:
    print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


if input() == 'H H' or 'D D':
    print('H')
else:
    print('D')

Failing test case input:
G H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):

a = input()
if a == 'H H' or a == 'D D':
    print('H')
else:
    print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = list(input().split(' '))

if a=='D' and b=='D':
  print('H')
elif a=='H':
  print('H')
elif a=='D':
  print('H')
     

Failing test case input:
H Y

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a, b = list(input().split(' '))

if a=='D' and b=='D':
  print('H')
elif a=='H'and b=='H':
  print('H')
elif a=='D'and b=='H':
  print('D')
else:
  print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = map(str,input().split())
if a==b:
    print('Yes')
else:
    print('No')

Failing test case input:
H 0

Expected output:
D


Actual output:
No


Fixed submission (verdict: Accepted):
a,b = map(str,input().split())
if a==b:
    print('H')
else:
    print('D')
Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
A, B = input().split()
if A == B:
  print("H")
else:
  print(A)

Failing test case input:
H Y

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
A, B = input().split()
if A == B:
  print("H")
else:
  print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a=input()
if a[0] !=a[1]:
    print("H")
else:
    print("D")

Failing test case input:
O H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a=input()
if a[0] !=a[2]:
    print("D")
else:
    print("H")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a, b = input().split()
a = 1 if a == 'H' else -1
b = 1 if a == 'H' else -1
if a * b == 1:
    print('H')
else:
    print('D')


Failing test case input:
1 H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a, b = input().split()
a = 1 if a == 'H' else -1
b = 1 if b == 'H' else -1
if a * b == 1:
    print('H')
else:
    print('D')

Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(str, input().split())

if a=="H":
    print("H")
else:
    print("D")

Failing test case input:
H 6

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b = map(str, input().split())

if a==b:
    print("H")
else:
    print("D")
Problem: p03233
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
C = [list(map(int,input().split())) for i in range(N)]
C.sort()
ans0 = 0
ans1 = 0
ans2 = 0
A = []
B = []
for i in range(N):
    ans0 += C[i][0]
    ans1 += C[i][1]
    Min = min(C[i][0],C[i][1])
    Max = max(C[i][0],C[i][1])
    ans2 += Min
    A.append(Min)
    B.append(Max)
ans3 = sum(sorted(A+B)[:N])
if ans3 == ans2:
    ans2 -= max(A)
    ans2 += min(B)
    ans3 = ans2
ans = min(ans0,ans1,ans3)
print(ans)

Failing test case input:
3
1 5
4 4
6 3

Expected output:
9


Actual output:
8


Fixed submission (verdict: Accepted):
N = int(input())
A = []
B = []
Sa = 0
Sb = 0
for i in range(N):
    a,b = map(int,input().split())
    A.append([a,i])
    B.append([b,i])
    Sa += a
    Sb += b
C = sorted(A+B)
ind = []
ans = 0
for i in range(N):
    ind.append(C[i][1])
    ans += C[i][0]
ind = set(ind)
if len(ind) == N:
    if C[N-1][1] != C[N][1]:
        ans += C[N][0]-C[N-1][0]
    else:
        ans += min(C[N][0]-C[N-2][0],C[N+1][0]-C[N-1][0])
ans = min(Sa,Sb,ans)
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())

ans = "No"

move = v*t - w*t
distance = abs(b - a)

if move > 0 and move >= distance:
    ans = "YES"

print(ans)

Failing test case input:
11 -1
-1 -1
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"

move = v*t - w*t
distance = abs(b - a)

if move > 0 and move >= distance:
    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 a < b:
    r1 = a + v * t
    r2 = b + w * t
    if v > w and r1 >= r2:
        print('YES')
    else:
        print('NO')
else:
    r1 = a - v * t
    r2 = b - v * t
    if v > w and r1 <= r2:
        print('YES')
    else:
        print('NO')



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

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:
    r1 = a + v * t
    r2 = b + w * t
    if r1 >= r2:
        print('YES')
    else:
        print('NO')
else:
    r1 = a - v * t
    r2 = b - w * t
    if r1 <= r2:
        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())

aa = v * t
bb = w * t

if aa - bb >= abs(b - a):
    print('Yes')
else:
    print('No')

Failing test case input:
1 1
2 12
19

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())

aa = v * t
bb = w * t

if aa - bb >= abs(b - a):
    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 > 0 and abs(a-b)/(v-w) <= t:
    print("Yes")
else:
    print("No")


Failing test case input:
0 0
5 6
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 v-w > 0 and abs(a-b) <= t*(v-w):
    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) == 0:
    print("NO")
elif (A-B) % (W-V) != 0:
    print("NO")
else:
    ans = (A-B)
    
    if 1 <= ans <= T:
        print("YES")
    else:
        print("NO")

Failing test case input:
0 6
0 4
2

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
import math

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

if W >= V:
    print("NO")
else:
    ans = math.ceil(abs(B-A)/(V-W))
    if ans <= 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:
    kyo = abs(a - b)
else:
    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 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())

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()) 

if v <= w:

  print('NO') 

else:

  q = abs(a-b) / abs(v - w) 

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

    print('YES') 

  else:

    print('NO') 



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:
  print('NO') 
else:
  q = abs(a-b) / abs(v - w) 
  if abs(a-b) <= abs(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:
    if float(A + V * T > B + W * T):
        print("YES")
    else:
        print("NO")

else:
    if float(A - V * T < B - W * 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 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 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

print(calc(oniend,kid,pase))



Failing test case input:
1 8
5 2
0

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 = input().split(" ")
B_W = input().split(" ")
T = int(input())
A = int(A_V[0])
V = int(A_V[1])
B = int(B_W[0])
W = int(B_W[1])
dA = A + V * T
dB = B + W * T
ndA = A - V * T
ndB = B - W * T
if (dA < dB):
    if (ndA > ndB):
        print("NO")
    else:
        print("YES")
else:
    print("YES")

Failing test case input:
1 8
5 2
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
A_V = input().split(" ")
B_W = input().split(" ")
T = int(input())
A = int(A_V[0])
V = int(A_V[1])
B = int(B_W[0])
W = int(B_W[1])
dA = A + V * T
dB = B + W * T
ndA = A - V * T
ndB = B - W * T
if (A<B):
    if (dA < dB):
        print("NO")
    else:
        print("YES")
else:
    if (ndA > ndB):
        print("NO")
    else:
        print("YES")

Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
import collections
input = sys.stdin.readline

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

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

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline

a, v = map(int, input().split())
b, w = map(int, input().split())
t = int(input())
if t * (v - w) >= abs(b - a):
	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 == 0:
    print("NO")
    import sys
    sys.exit()
import math
t = math.floor((B-A)/(V-W))




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

Failing test case input:
4 0
-1 2
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 V<=W:
    print("NO")
    import sys
    sys.exit()
import math
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*t+a==w*t+b:
  print("YES")
else:
  print("NO")

Failing test case input:
0 6
5 -1
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 v*t-w*t>=abs(-b+a):
  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())

dis0 = b - a
dis = v - w
if dis <= 0:
  print('No')
  exit()

d = dis*t
if d < dis0:
  print('No')
else:
  print('Yes')
  

Failing test case input:
1 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())

dis0 = abs(b - a)
dis = v - w
if w>=v:
  print("NO")
  exit()

if abs(b-a)/(v-w)>t:
  print("NO")
else:
  print("YES")
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
input = sys.stdin.readline
P = [list(map(int,input().split())) for i in range(2)]
T = int(input())
if(P[0][1]<P[1][1]):
  print('NO')
else:
  if(abs(P[0][0]-P[1][0])<abs(P[0][1]-P[1][1])*T):
    print('YES')
  else:
    print('NO')

Failing test case input:
-1 3
2 2
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline
P = [list(map(int,input().split())) for i in range(2)]
T = int(input())
if(P[0][1]<P[1][1]):
  print('NO')
else:
  if(abs(P[0][0]-P[1][0])<=abs(P[0][1]-P[1][1])*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())

pos_a = a + v * t
pos_b = b + w * t

ret = "NO"
if pos_a >= pos_b:
    ret = "YES"

print("{}".format(ret))

Failing test case input:
5 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())


dir = 1
if b < a:
    dir = -1


pos_a = a + v * dir * t
pos_b = b + w * dir * t

ret = "NO"
if dir == 1 and pos_a >= pos_b:
    ret = "YES"
elif dir == -1 and pos_b >= pos_a:
    ret = "YES"

print("{}".format(ret))

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:
    print("NO")
else:
    tmp = (B-A)/(V-W)
    if 0 <= tmp and tmp <= 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 W>=V:
    print("NO")
else:
    tmp = (B-A)/(V-W)
    if abs(tmp) <= 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 = abs(a - b)

if v  * t > w * t + d:
    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())

d = abs(a - b)

if v  * t >= w * t + d:
    print('YES')
else:
    print('NO')
Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
oni = list(map(int,input().split()))
child =list(map(int,input().split()))
time = int(input())
oni_kyori = oni[0]+oni[1]*time
child_kyori = child[0]+child[1]*time

if oni[0]<child[0]:
    if oni_kyori<child_kyori:
        print('NO')
    else:
        print('YES')
else:
    if oni_kyori<=child_kyori:
        print('NO')
    else:
        print('YES')

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

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
oni = list(map(int,input().split()))
child =list(map(int,input().split()))
time = int(input())

if oni[0]<child[0]:
    oni_kyori = oni[0]+oni[1]*time
    child_kyori = child[0]+child[1]*time

    if oni_kyori<child_kyori:
        print('NO')
    else:
        print('YES')
else:
    oni_kyori = oni[0]-oni[1]*time
    child_kyori = child[0]-child[1]*time

    if oni_kyori>child_kyori:
        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')
  exit()
  
if v>w:
  if b-a<=(v-w)*t:
    print('YES')
    exit()
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:
  if v>=w:
    if b-a<=(v-w)*t:
      print('YES')
      exit()
  print('NO')
else:
  if v>=w:
    if a-b<=(v-w)*t:
      print('YES')
      exit()
  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 == 0:
  print('NO')  
elif V-W < 0:
  print('NO')
elif B-A < 0:
  print('NO')
elif (B-A)/(V-W) <= T:
  print('YES')
else:
  print('NO')

Failing test case input:
1 9
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 V-W == 0:
  print('NO')  
elif V-W < 0:
  print('NO')
elif 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 abs(V-W)*T >= A-B:
  print("YES")
else:
  print("NO")


Failing test case input:
1 6
5 1
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)*T >= abs(A-B):
  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())

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

if __name__ == "__main__":
    main()

Failing test case input:
-1 3
0 4
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 W < V:
        if abs(A - B) <= abs(W - V)*T:
            print("YES")
        else:
            print("NO")
    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 = int(input())


if (v <= w):
  ans = t + 1
else: 
  ans = (b - a) / (v - w)


if t >= ans and ans > 0:
  print("YES")
else:
  print("NO")



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

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:
  ans = (b - a) / (v - w)
  if t >= abs(ans):
    print("YES")
  else:
    print("NO")

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

flag = False
for i in range(T):
  if A+V*(i+1) == B+W*(i+1):
    flag = True

if flag is True:
  print("YES")
else:
  print("NO")

Failing test case input:
2 9
2 2
1

Expected output:
YES


Actual output:
NO


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

abs_BA = abs(B-A)
sub_VW = V - W

if sub_VW <= 0:
  print("NO")
elif abs_BA <= T * sub_VW:
  print("YES")
else:
  print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy


if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    d = abs(b-a)
    vt = v*t
    wt = w*t
    a = a + vt
    b = b + wt
    if b < a:
        print("YES")
    else:
        print("NO")

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

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy


if __name__ == "__main__":
    a,v = map(int,input().split())
    b,w = map(int,input().split())
    t = int(input())
    d = abs(a-b)
    vt = v*t
    wt = w*t
    b = d + wt
    if vt >= 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())

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

Failing test case input:
2 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())

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

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def tag(a,b,v,w,t):
    it = (a+(v*t))*2
    other = (b+(w*t))*2
    res = it-other
    if res>-1:
        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:
7 0
-1 0
21

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=(int(x) for x in input().split())
B, W=(int(x) for x in input().split())
T = int(input())


if B-A<=(V-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(x) for x in input().split())
B, W=(int(x) for x in input().split())
T = int(input())

if V<=W:
 	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):



import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline




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

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


Failing test case input:
0 0
5 6
3

Expected output:
NO


Actual output:
N0


Fixed submission (verdict: Accepted):



import sys
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline




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

if v <= w:
    print('NO')
else:
    if (v-w) * t >= abs(a - b):
        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 v*t >= abs(b - a) + w*t:
    print("No")
else:
    print("Yes")

Failing test case input:
1 1
2 12
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*t >= abs(b - a) + w*t:
    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:
    print("NO")
    sys.exit()
elif W <= V:
    print("YES")
    sys.exit()



distance_AB = abs(A-B)
speed_AB = abs(A-B)

if speed_AB * T < distance_AB:
    print("YES")
else:
    print("NO")




Failing test case input:
1 6
5 2
0

Expected output:
NO


Actual output:
YES


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




if V <= W:
    print("NO")
    sys.exit()




distance_AB = abs(A-B)
speed_AB = abs(V-W)

if speed_AB * T >= distance_AB:
    print("YES")
else:
    print("NO")

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A, V = list(map(int, input().split()))
B, W = list(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 9
0 1
2

Expected output:
YES


Actual output:
NO


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

Failing test case input:
-1 3
0 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(V<W):
    print("NO")
elif(abs(A-B)>T*(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 w > v:
    print("NO")

oni = v*t
nige = w*t
sa = abs(b-a)

if oni - nige > sa:
    print("YES")
else:
    print("NO")

Failing test case input:
-1 3
0 4
3

Expected output:
NO


Actual output:
NO
NO


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

oni = v*t
nige = w*t
sa = abs(b-a)

if oni - nige >= sa:
    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())

last_A = V * T + A
last_B = W * T + B

print('YES' if last_A >= last_B else "NO")


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())

speed = V - W
length = abs(B - A)

if length <= T * speed:
  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())
G = a<b
a += v*t
b += w*t
if a==b:
  print("YES")
else:
  H = a<b
  print("YES" if G!=H else "NO")

Failing test case input:
1 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())
G = abs(a-b)
H = (v-w)*t
print("YES" if G<=H 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())

oni = a + v * t
nige = b + w * t

if a <= b:
    if oni >= nige:
        print('YES')
    else:
        print('NO')
else:
    if oni <= nige:
        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 a > b:
    a, b = b, a

oni = a + v * t
nige = b + w * t

if oni >= nige:
    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'
    x=int(x)
    if abs(x) >= 1 and abs(x) <= t and x*v + a == x*w + b:
        return 'YES'

    return 'NO'


print(solve())


Failing test case input:
1 5
2 -1
4

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):
a, v = map(int,input().split())
b, w = map(int,input().split())
t = int(input())

kyo = abs(b - a)
ti = abs(v -w)
if ti == 0:
    print("NO")
    exit()

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


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

print("NO")

Failing test case input:
1 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())

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())

d=abs(a-b)


if(v*t>=b*t+d): print("YES")
else:print("NO");


Failing test case input:
0 3
0 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())

d=abs(a-b)


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

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
A_V = input().split()
A = int(A_V[0])
V = int(A_V[1])
B_W = input().split()
B = int(B_W[0])
W = int(B_W[1])
T = int(input())
 
if W - V <= 0:
  print('NO')
elif T < abs(B-A)/(W-V):
  print('NO')
else:
  print('YES')

Failing test case input:
1 2
3 0
3

Expected output:
YES


Actual output:
NO


Fixed submission (verdict: Accepted):
A_V = input().split()
A = int(A_V[0])
V = int(A_V[1])
B_W = input().split()
B = int(B_W[0])
W = int(B_W[1])
T = int(input())
 
if V - W <= 0:
  print('NO')
elif T < abs(B-A)/(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())
s=int(input())
if(((b*w)-(a*v))>(a*v)):
  print("Yes")
else:
  print("No")

Failing test case input:
1 9
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())
s=int(input())
if(abs(a-b)>(v-w)*s):
  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())

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


Failing test case input:
1 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())

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

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

l1 = a + v * t
l2 = b + w * t

flag = False
if a > b and l1 <= l2:
    flag = True
elif a < b and l1 >= l2:
    flag = True
print("YES" if flag else "NO")

Failing test case input:
5 0
-1 2
36

Expected output:
NO


Actual output:
YES


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

flag = False
if a < b:
    l1 = a + v * t
    l2 = b + w * t
    if l1 >= l2:
        flag = True
else:
    l1 = a + (v * -1) * t
    l2 = b + (w * -1) * t
    if l1 <= l2:
        flag = True
print("YES" if flag else "NO")
Problem: p02646
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
from sys import stdin
input = stdin.readline
 
A,V = input().rstrip().split()
B,W = input().rstrip().split()
T = int(input().rstrip())
A,V,B,W = int(A),int(V),int(B),int(W)
s=0
for t in range(T):
  if B<A:
    A-=V
    B-=W
    if B>=A:
      print('Yes')
      s=1
      break
  else:
    A+=V
    B+=W
    if B<=A:
      print('Yes')
      s=1
      break
 
if s!=1:
  print('No')

Failing test case input:
1 5
2 -1
4

Expected output:
YES


Actual output:
Yes


Fixed submission (verdict: Accepted):
from sys import stdin
input = stdin.readline
 
A,V = input().rstrip().split()
B,W = input().rstrip().split()
T = int(input().rstrip())
A,V,B,W = int(A),int(V),int(B),int(W)
s=0
L1=A-B
L2=B-A
S=V-W
if V<=W:
  print('NO')
  s=1
else:
    if B<A:
      if L1/S<=T:
        print('YES')
      else:print('NO')
    else:
      if L2/S<=T:
        print('YES')
      else:print('NO')

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def read_input(trans=int):
    return list(map(trans, input().split()))



A, V = read_input()
B, W = read_input()
T = int(input())

if W > V:
    print("No")
elif (V-W)*T >= abs(B-A):
    print("YES")
else:
    print("No")


Failing test case input:
0 3
0 4
2

Expected output:
NO


Actual output:
No


Fixed submission (verdict: Accepted):
def read_input(trans=int):
    return list(map(trans, input().split()))


YES = "YES"
NO = "NO"


A, V = read_input()
B, W = read_input()
T = int(input())

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

Problem: p02646
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def tag(a,b,v,w,t):
    it = a+(v*t*2)
    other = b+(w*t*2)
    if it >= other:
        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 0
3 3
3

Expected output:
NO


Actual output:
No


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 (PyPy3 (7.3.0), verdict: Wrong Answer):
oni = list(map(int, input().split()))
nige = list(map(int, input().split()))
time = int(input())

if nige[1]>=oni[1]:
    print("NO")
else:
    distance = abs(oni[0]-nige[1])
    diff = oni[1]-nige[1]
    need_time = distance / diff
    if need_time > time:
        print("NO")
    else:
        print("YES")


Failing test case input:
0 6
5 0
0

Expected output:
NO


Actual output:
YES


Fixed submission (verdict: Accepted):
oni = list(map(int, input().split()))
nige = list(map(int, input().split()))
time = int(input())

if nige[1]>=oni[1]:
    print("NO")
else:
    distance = abs(oni[0]-nige[0])
    diff = oni[1]-nige[1]
    need_time = distance / diff
    if need_time > time:
        print("NO")
    else:
        print("YES")