Problem:


Score : 200 points

Problem Statement

Takahashi and Aoki will have a battle using their monsters.

The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.

The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ...
Here, an attack decreases the opponent's health by the value equal to the attacker's strength.
The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.

If Takahashi will win, print Yes; if he will lose, print No.

Constraints

1 \leq A,B,C,D \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

If Takahashi will win, print Yes; if he will lose, print No.

Sample Input 1

10 9 10 10

Sample Output 1

No

First, Takahashi's monster attacks Aoki's monster, whose health is now 10-9=1.

Next, Aoki's monster attacks Takahashi's monster, whose health is now 10-10=0.

Takahashi's monster is the first to have 0 or less health, so Takahashi loses.

Sample Input 2

46 4 40 5

Sample Output 2

Yes



Sample input:
10 9 10 10


Sample output:
No

Submission status: Wrong Answer

Solution code:
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split()]
def LS(): return list(MS())
def LI(): return list(MI())
def LLS(): return [list(map(str, l.split() )) for l in input()]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def LLSN(n: int): return [LS() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]

A,B,C,D = MI()

if C-B < 0:
    print("Yes")
elif A-D >= C-B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())

while True:
  if a>0 and c>0: 
    if c>0:
      c -= b
      if c<=0:
        break
        print("Yes")
      
    if a>0:
      a -= d
      if a<=0:
        break 
        print("No")
  else:
    break

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
print("Yes"if ((C-1)+1//B)<=(A//D)else"No")

Submission status: Wrong Answer

Solution code:
def battle(A,B,C,D):
    ta_i = 0
    ao_i = 0
    count = 0
    while A>0 and C>0:
        if count%2==0:
            ta_i += 1
            C = C-ta_i*B
        else:
            ao_i += 1
            A = A-ao_i*D
        count += 1
    if A<=0:
        return 'No'
    elif C<=0:
        return 'Yes'

if __name__ == "__main__":
    A,B,C,D = map(int,input().split())
    print(battle(A,B,C,D))

Submission status: Wrong Answer

Solution code:
N=[int(x) for x in input().split()]
if not N[2]%N[1]==0:
   c=N[2]//N[1]+1
else:
    c=N[2]//N[1]
if not N[0]%N[3]==0:
   c=N[0]//N[3]+1

   d=N[0]//N[3]+1
else:
    d=N[0]//N[3]
if d>=c+1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
# B Battle

a,b,c,d = map(int,input().split())
ans = 1
while ans:
    a = a - d
    c = c - b
    if a <= 0 or c <= 0:
        break

if a >= c:
    print('Yes')
elif a < c:
    print('No')

Submission status: Wrong Answer

Solution code:
A, B, C, D =  map(int, input().split())
T_count = 0 
A_count = 0
for i in range(100):
    C -= B
    if C >= 0:
        T_count += 1 
    else:
        T_count += 0
        break

for j in range(100):
    B -= D
    if B >= 0:
        A_count += 1 
    else:
        A_count += 0
        break

if T_count <= A_count:
    print('Yes')
else:print('No')

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
while C-B>=0 or A-D >= 0:
    if C-B>=0:
        C-=B
    if A-D>=0:
        A-=D
print("Yes") if A>C else print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D=input().split()
A = int(A)
B = int(B)
C = int (C)
D = int(D)
if A - B > C and C -D<A:
    print ('Yes')
else:
    print ('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d = input().split()
a = int(a)#体力
b = int(b)
c = int(c)#体力
d = int(d)

x = a/d +1
y = c/b

if x <= y:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
X = C-B
Y = A-D
if X>Y:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
while A > 0 and C >0:
    B -= C
    A -= D
print("Yes" if A<0 else "No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
while a<=0 or c<=0:
  c-=b
  a-=d
if a<=0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
while 1:
    a -= d
    c -= b
    if a <= 0:
        print('No')
        break
    else:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
TaHP,TaAP,AoHP,AoAP = map(int, input().split())

Flag_Ta = True

while( TaHP > 0 or AoHP > 0):
	print(TaHP)
	print(AoHP)
	if	Flag_Ta:
		AoHP = AoHP - TaAP
		Flag_Ta = False
	else:
		TaHP = TaHP - AoAP
		Flag_Ta = True
if TaHP > 0:
	print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

while True:
    A -= D
    if A <= 0:
        print('Yes')
        break
    C -= B
    if C <= 0:
        print('No')
        break

Submission status: Wrong Answer

Solution code:
import math
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)

if t_n-1 <= a_n:
    print('YES')
else:
    print('NO')

Submission status: Wrong Answer

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
c = int(data[2])
d = int(data[3])


while True:
    #print(a,c)
    if a <= 0:
        print("No")
        break
    elif c <= 0:
        print("Yes")
        break
    a -= d
    c -= b

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int,input().split())
Ao = C
Ta = A
for i in range(max(A//D,C//B)):
    Ao -= B
    if Ao <= 0:
        print("Yes")
        break
    Ta -= D
    if Ta <= 0:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
B = input().split()

while True:
    B[2] = int(B[2]) - int(B[1])
    B[0] = int(B[0]) - int(B[3])
    print(B[2])
    print(B[0])
    if int(B[2]) <= 0:
        print("Yes")
        break
    elif int(B[0]) <= 0:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
if (C-B)>(A-D):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
a = C//B
b = A//D
if C%B != 0:
    a = a + 1
elif A%D != 0:
    b = b + 1

if a < b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
class monster:

    def __init__(self, hp, ap):
        self.hp = hp
        self.ap = ap

        
def battle(player1, player2):
    if player2.hp // player1.ap == 0:
        return "No"
    for i in range(player2.hp // player1.ap):
        attack(player1, player2)
        if player2.hp <= 0:
            return 'Yes'
        attack(player2, player1)
    return 'No'

def attack(attacker, receiver):
    receiver.hp -= attacker.ap

a, b, c, d = map(int, input().split())
takahashi = monster(a, b)
aoki = monster(c,d)

print(battle(takahashi, aoki))

Submission status: Wrong Answer

Solution code:
a,b,c,d = input().split()
a,b,c,d = int(a),int(b),int(c),int(d)
while True:
  c -= b
  if c<=0:
    break
  a -= d
  if a<=0:
    break
if a>=0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D=input().split()
A = int(A)
B = int(B)
C = int (C)
D = int(D)
if  A >=1 and A <=100 and B >=1 and B <=100 and C >=1 and C <=100 and D >=1 and D <=100 and A - B < C:
    print ('Yes')
else:
    print ('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
turn =1
while((a>0) or (c>0)):
  if(turn == 1):
    c -= b
    turn = 0
  else:
    a -= d
    turn = 1
if(a<=0):
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
# B Battle

a,b,c,d = map(int,input().split())
ans = 1
while ans:
    a = a - d
    c = c - b
    if a <= 0 or c <= 0:
        break
print(a,c)        
if a >= c:
    print('Yes')
elif c < a:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
while True:
    c -= b
    if c <= 0:
        print('No')
        break
    a -= d
    if a <= 0:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
#print(A,B,C,D)

while A > 0:
    C -= B
    A -= D
    if C <= 0:
        print("Yes")
        
    elif A <= 0:
        print("No")
    else:
        pass

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
N = C//B
M = A//D
n = C % B
m = A % D
 
if N < M:
  print('Yes')
elif N > M:
  print('No')
elif N == M:
  if n == 0:
    print('Yes')
  elif m == 0:
    print('No')
  else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
import math
a,b,c,d=[int(x) for x in input().split()]
print("{} {}".format(math.ceil(c/b),math.ceil(a/d)))
if math.ceil(c/b)<=math.ceil(a/d):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
bl = True
while True:
    if bl:
        a -= d
        bl = False
    else:
        c -= b
        bl = True
    if a <= 0:
        print("No")
        break
    elif c <= 0:
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int,input().split())
if B >= C:
    print("Yes")
elif D >= A:
    print("No")
else:
    Ao = C
    Ta = A
    for i in range(max(A//D,C//B)):
        Ao -= B
        if Ao <= 0:
            print("Yes")
            exit()
        Ta -= D
        if Ta <= 0:
            print("No")
            exit()

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
print("Yes" if (A-B)>(C-D) else "No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())

while True:
  if c>0:
    c -= b
    if c<=0:
      break
      print("Yes")
      
  if a>0:
    a -= d
    if a<=0:
      break 
      print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
while True:
    if c - b <= 0:
        print('No')
        break
    else: 
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A and B and C and D >= 1 and A and B and C and D <= 100:
    F = C - B
    S = A - D
    if F < S:
        print("Yes")
    else:
        print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

t = C /B
a = A /D

if t <= a+1 :
    ans = "Yes"
    if A % D == 0 and C % B ==0:
        ans = "Yes"
    elif A % D == 0:
        ans = "No"
else:
    ans = "No"

if B > C:
    ans = "Yes"
print(ans)

Submission status: Wrong Answer

Solution code:
import time
A,B,C,D = map(int,input().split())


if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end

if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end

Submission status: Wrong Answer

Solution code:
num = map(int, input().split())
list1=[]
for i in num:
    list1.append(i)
A=list1[0]
B=list1[1]
C=list1[2]
D=list1[3]
if (A+B)<(C+D):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
X,Y,Z,A = map(int, input().split())
if (Z-Y)>(X-A):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(map(int,input().split()))
if c/b<=a/d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
#print(A,B,C,D)

while A > 0:
    C -= B
    A -= D
    if C <= 0:
        print("Yse")
      
    elif A <= 0:
        print("No")
    else:
        pass

Submission status: Wrong Answer

Solution code:
A, B, C, D = list(map(int, input().split()))
while A > 0 and C > 0:
    C = C - B
    A = A - D
if A > B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
c = int(data[2])
d = int(data[3])


while True:
    if a <= 0:
        print("No")
        break
    elif c <= 0:
        print("Yes")
        break
    a -= d
    c -= b

Submission status: Wrong Answer

Solution code:
import time
A,B,C,D = map(int,input().split())


if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end
if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end

Submission status: Wrong Answer

Solution code:

n = input().split()
n = [int(i) for i in n]
 
a = n[0]
b = n[2]
c = 0
d = 0
while a > 0:
    c+=1
    a -= n[3]
while b > 0:
    d+=1
    b -= n[1]
    
if c <= d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
aoki = A[2]-A[1]
taka = A[0]-A[3]
aoki =- A[1]
taka =- A[3]
if aoki<=0:
    print("Yes")
elif taka<=0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
for i in range(1,201):
  while A < 0 or C < 0:
    if i%2==1:
      C=C-B*(((i-1)/2)+1)
    if i%2==0:
      A=A-D*(i/2)
if A > 0 and C < 0:
  print('Yes')
if A < 0 and C > 0:
  print('No')

Submission status: Wrong Answer

Solution code:
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split()]
def LS(): return list(MS())
def LI(): return list(MI())
def LLS(): return [list(map(str, l.split() )) for l in input()]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def LLSN(n: int): return [LS() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]

A,B,C,D = MI()

if A-D >= C-B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d,=map(int,input().split())
def func(a,b,c,d):
    while a>0 and c>0:
        c-=b
        a-=d
    if a<=0:
        return "No"
    else:
        return "Yes"
print(func(a,b,c,d))

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(map(int,input().split()))
if c%b <=a%d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
a = C//B
b = A//D
if C%B != 0:
    a = a + 1
elif A%D != 0:
    b = b + 1

if a <= b:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
while c <= 0 or d <= 0:
    c -= b
    a -= d
if c <= 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split()]
def LS(): return list(MS())
def LI(): return list(MI())
def LLS(): return [list(map(str, l.split() )) for l in input()]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def LLSN(n: int): return [LS() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]

A,B,C,D = MI()

if A-D > C-B:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
class monster:

    def __init__(self, hp, ap):
        self.hp = hp
        self.ap = ap

        
def battle(player1, player2):
    for i in range(player2.hp // player1.ap):
        attack(player1, player2)
        if player2.hp <= 0:
            return 'Yes'
        attack(player2, player1)
    return 'No'

def attack(attacker, receiver):
    receiver.hp -= attacker.ap

a, b, c, d = map(int, input().split())
takahashi = monster(a, b)
aoki = monster(c,d)

print(battle(takahashi, aoki))

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
while 1:
    a -= d
    c -= b
    if a <= 0:
        print('no')
        break
    else:
        print('yes')
        break

Submission status: Wrong Answer

Solution code:

a,b,c,d = map(int,input().split())

T = int(a / d)
A = int(c / b)

if T == A:
    print("No")
elif T > A:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
#a,b :先攻
aoki = c//b
taka = a//d
nokori_a = c - (taka+1)*b
#nokori_t = a - aoki*d

if aoki < taka:
  print("Yes")
  
elif aoki >= taka:
  if nokori_a <=0:
    print("Yes")

else:
  print("No")

Submission status: Wrong Answer

Solution code:

n = input().split()
n = [int(i) for i in n]

a = n[0]
b = n[2]
c = 0
d = 0
while a > 0:
    c+=1
    a -= n[3]
while b > 0:
    d+=1
    b -= n[1]

print(c,d)

if c <= d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = input().split()
a,b,c,d = int(a),int(b),int(c),int(d)
while a>0 or c>0:
  c = c-b
  if c<=0:
    break
  a = a-d
  if a<=0:
    break
if a>=0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
class monster:

    def __init__(self, hp, ap):
        self.hp = hp
        self.ap = ap

        
def battle(player1, player2):
    for i in range(1 + player2.hp // player1.ap):
        attack(player1, player2)
        if player2.hp <= 0:
            return 'Yes'
        attack(player2, player1)
    return 'No'

def attack(attacker, receiver):
    receiver.hp -= attacker.ap

a, b, c, d = map(int, input().split())
takahashi = monster(a, b)
aoki = monster(c,d)

print(battle(takahashi, aoki))

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
while c < 0 or d < 0:
    c -= b
    a -= d
if c < 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
n,m,a,b=map(int,input().split())
if n+m>a+b:
    print("Yes")
elif n+m==a+b :
    if min(n,m)<min(a,b):
        print("No")
    else:
        print("Yes")
    
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
while A <= 0 or C <= 0:
    A = A - D
    C = C - B
print("Yes" if A <=0 else "No")

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
for i in range(1,201):
  while A < 0 or C < 0:
    if i%2==1:
      C=C-B*(((i-1)/2)-1)
    if i%2==0:
      A=A-D*(i/2)
if A > 0 and C < 0:
  print('Yes')
if A < 0 and C > 0:
  print('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
bl = True
while True:
    if bl:
        a -= d
        bl = False
    else:
        bl = True
        c -= b
    if a >= 0:
        print("No")
        break
    elif c >= 0:
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
n=1
while c-b*n>0 and a-d*n>0:
    n+=1
if c-b*n<=a-d*n:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(map(int,input().split()))
if c%b < a%d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

if A/D < C/B:
  print("No")
else:
  print("Yes")

Submission status: Wrong Answer

Solution code:
import math
a,b,c,d=map(float,input().split())
ta=c/b
aa=a/d
ta=math.floor(ta)
aa=math.floor(aa)
if(c%d):
    ta=ta+1
if(a%d):
    aa=aa+1
if(ta>=aa):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
def main():
  A, B, C, D = map(int, input().split())
  print(A, C)
  while True:
    C -= B
    if C <= 0:
      print('Yes')
      break
    A -= D
    if A <= 0:
      print('No')
      break

if __name__ == '__main__':
  main()

Submission status: Wrong Answer

Solution code:
A, B, C, D = list(map(int, input().split()))
while True:
    if A - D <= 0:
        print('No')
        break
    else:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
P =  list(map(int,input().split()))
A = P[0]
B = P[1]
C = P[2]
D = P[3]

p = 0
q = 0
for i in range(100): 
    p += 1
    C-=B
    if C<=0:
        
        break
    
for i in range(100): 
    q += 1
    A-=D
    if A<=0:
        
        break

if p == q:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if(a>c):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
if(a+b>=c+d):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A,B,C,D =input().split()
while(1):
    C = int(C)-int(B)
    if(int(C) <= 0):
        print("yes")
        break
    A = int(A)-int(D)
    if(int(A) <= 0):
        print("no")
        break

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
print("Yes") if c%b<a%d else print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if (a - b) > 0:
    if (a - b) > 0:
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
S = 0
while S != 1:
    C = C - B
    A = A - D
    if C <= 0:
        S = 1
        print("No")
    elif A <= 0:
        S = 1
        print("Yes")
    else:
        continue

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
if A >= C:
    if B > D:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
while a > 0:
  c -= b
  a -= d
  if c <= 0:
      break
if a >= 0 and c <0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())

count_takashi = -(-c//b)
count_aoki = -(-a//d)
print(count_takashi)
print(count_aoki)
if count_takashi <= count_aoki:
    print('Yes')
else: 
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if (a - b) > 0:
    if (a - b) > 0:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
n=1
while c-b*n>0 and a-d*n>0:
    n+=1
if c-b*(n+1)<=a-d*(n+1):
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
while a > 0:
  c=c-b
  if c<=0:
    print('Yes')
    break
 
  if a-d<=0:
    print('No')
    break

Submission status: Wrong Answer

Solution code:
THP, TMP, AHP, AMP = map(int, input().split())
 
if TMP == AHP:
  print('Yes')

else:
  while AHP > 0 and THP > 0:
  
    AHP = AHP - TMP
    THP = THP - AHP
  
  if AHP > THP:
    print('Yes')

  else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
while(c-b>0 or a-d>0):
  c-=b
  a-=d
if c<=0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

t = C /B
a = A /D

if t <= a+1 :
    ans = "Yes"
    if A % D == 0 and C % B ==0:
        ans = "Yes"
    elif A % D == 0:
        ans = "No"
    else:
        ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Wrong Answer

Solution code:
A,B,C,D = (int(x) for x in input().split())
while 1 > 0:
  D = D-B
  if not D > 0:
    print('Yes')
    break
  A = A-C
  if not A > 0:
    print('No')
    break

Submission status: Wrong Answer

Solution code:
class monster:

    def __init__(self, hp, ap):
        self.hp = hp
        self.ap = ap

        
def battle(player1, player2):
    while player1.hp <= 0:
        attack(player1, player2)
        if player2.hp <= 0:
            return 'Yes'
        attack(player2, player1)
    return 'No'

def attack(attacker, receiver):
    receiver.hp -= attacker.ap

a, b, c, d = map(int, input().split())
takahashi = monster(a, b)
aoki = monster(c,d)

print(battle(takahashi, aoki))

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
a = C//B
aa = C%B
b = A//D
bb = A%D
if (a + aa) <= (b + bb):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d = input().split()
A = int(a)
B = int(b)
C = int(c)
D = int(d)
for i in range(A):
    A = A - D
    B = B - C
    print(A)
    print(B)
    if A <= 0:
        print("No")
        break
    if B <= 0:
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
TaHP,TaAP,AoHP,AoAP = map(int, input().split())

Flag_Ta = True

while( TaHP >= 0 or AoHP >= 0):
	if	Flag_Ta:
		AoHP = AoHP - TaAP
		Flag_Ta = False
	else:
		TaHP = TaHP - AoAP
		Flag_Ta = True
if TaHP >= 0:
	print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
print(a,b,c,d)

while a > 0:
  c=c-b
  if c<=0:
    print('Yes')
    break
 
  if a-d<=0:
    print('No')
    break
print(a,c)

Submission status: Wrong Answer

Solution code:
def battle(A,B,C,D):
    if A//D > C//B:
        return 'Yes'
    elif A//D < C//B:
        return 'No'
    else:
        if C-B*(C//B) > 0 and A-D*(A//D) == 0:
            return 'No'
        else:
            return 'Yes'


if __name__ == "__main__":
    A,B,C,D = map(int,input().split())
    print(battle(A,B,C,D))

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
if (A - C) > (D - B):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

TA = int(A / D)
AO = int(C / B)
TAA = A & D
AOO = C % B
if TA < AO:
    print('Yes')
elif TA == AO:
    if TAA >= AOO:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
Takahashi = C - B
Aoki = A - D
if Takahashi > Aoki: print ("No")
else: print ("Yes")

Submission status: Wrong Answer

Solution code:
a, b, c, d= map(int, input().split())
if (a-b)%2==1 and (c-d)%2==0:
    print("No")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())
print('yes' if A // D < C // B else 'no')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
S = 0
while S != 1:
    C = C - B
    D = D - A
    if C <= 0:
        S = 1
        print("No")
    elif D <= 0:
        S = 1
        print("Yes")
    else:
        continue

Submission status: Wrong Answer

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
c = int(data[2])
d = int(data[3])


while True:
    if a <= 0:
        print("No")
        break
    elif c <= 0:
        print("Yes")
        break
    a -= d
    c = -b

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
win=A/D
lose=C/B
if win>lose:
  print("Yes")
else:
  if lose-win<1 and A%D!=0:
    print("Yes")
  else:
    print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
bl = True
while True:
    if bl:
        a -= d
        bl = False
    else:
        bl = True
        c -= b
    if a == 0:
        print("No")
        break
    elif c == 0:
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())

if a -d >= c -b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a, b, c, d= map(int, input().split())
if (a+b)%2==1 and (c+d)%2==0:
    print("No")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int, input().split())
while(c-b>0 or a-d>0):
  c-=b
  a-=d
if c<=0 and a>0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if c//b==a//d and b%c==0:
    print('Yes')
elif c//b==a//d and b%c!=0:
    print('No')
elif c//b>a//d and a%d<b:
    print('Yes')
elif c//b<a//d:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
while a>0 and c>0:
    a = a-d
    c = c-b
    if a <= 0:
        print("No")
        break
    if c <= 0:
        print("Yes")
        break

Submission status: Wrong Answer

Solution code:
input_line = list(map(int,input().split()))

# 高橋の体力
A = input_line[0]
# 高橋の攻撃
B = input_line[1]
# 青木の体力
C = input_line[2]
# 青木の攻撃
D = input_line[3]

while A != 0 or C != 0:
    C -= B
    A -= D
    if A <= 0:
        print('No')
        break
    elif C <= 0:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
a,b,c,d = input().split()
a,b,c,d = int(a),int(b),int(c),int(d)
while a>0 or c>0:
  c = c-b
  a = a-d
if a>=0:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())

if a -d > c -b:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
for i in range(1,1000):
    if i%2 ==1:
        c =c-b
        if c ==0:
            print("Yes")
            exit()
    else:
        a = a-d
        if a ==0:
            print("No")
            exit()

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
takahashi = c//b
aoki = a//d + 1
if takahashi > aoki:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
x=a//d+[1,0][(a%d)>0]
y=c//b+[1,0][(c%b)>0]
if x>y:
  print("No")
else:
  print("Yes")
#print(x,y)

Submission status: Wrong Answer

Solution code:
x = list(map(int, input("Enter a multiple value: ").split()))
for i in x:
    x[1] -= x[2]
    x[0] -= x[3]
if x[0]<0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(map(int,input().split()))
if c//b >=a//d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split())

t = C /B
a = A /D

if t <= a+1 :
    ans = "Yes"
    if A % D == 0 and C % B ==0:
        ans = "Yes"
    elif A % D == 0:
        ans = "No"
else:
    ans = "No"
print(ans)