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: Accepted

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

t_kai = (A // D)
if A % D != 0:
    t_kai += 1

a_kai = (C // B)
if C % B != 0:
    a_kai += 1

if t_kai >= a_kai:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B, C, D = map(int, input().split())
m=0
n=0
while C>0:
  C=C-B
  m+=1
while A>0:
  A=A-D
  n+=1
if m<=n:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

while A > 0 or C > 0:
    C -= B
    if C <= 0:
        print('Yes')
        break

    A -= D
    if A <= 0:
        print('No')
        break

Submission status: Accepted

Solution code:
t_h,t_s,a_h,a_s=map(int,input().split())
while t_h>0 and a_h>0:
    a_h-=t_s
    if a_h<=0:
        break
    t_h-=a_s

print("Yes" if t_h>a_h else "No")

Submission status: Accepted

Solution code:
import math
A,B,C,D = map(int,input().split())
t = math.ceil(C/B)
a = math.ceil(A/D)
if t <= a:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from sys import stdin
input=lambda : stdin.readline().strip()
from math import ceil,sqrt,factorial,gcd
# for _ in range(int(input())):
a,b,c,d=map(int,input().split())
while 1:
	if c<=b:
		print('Yes')
		break
	else:
		c=c-b
		if a<=d:
			print('No')
			break
		else:
			a=a-d

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C,D = map(int, input().split())
count = 0
while A > 0 and C > 0:
    if count % 2 == 0:
        C -= B
    else:
        A -= D
    count += 1

if A <= 0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
import math

a,b,c,d =map(float,input().split())
if c <= b*(math.ceil(a/d)):
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C,D = map(int,input().split())
#print(A,B,C,D)
def judge(A,B,C,D):
    while(True):
        C = C-B
        A = A - D
        if C<=0:
            return 1
            break
        elif A<=0:
            return 0
            break
if judge(A,B,C,D)==1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin


if __name__ == "__main__":
    _in = [_.rstrip() for _ in stdin.readlines()]
    A, B, C, D = list(map(int,_in[0].split(' ')))  # type:list(int)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    HP_takahashi = A
    HP_aoki = C
    while HP_takahashi-D > 0 or HP_aoki-B > 0:
        HP_aoki -= B
        HP_takahashi -= D
    else:
        if HP_takahashi <= 0 and HP_aoki <= 0:
            TF = 'Yes'
        elif HP_takahashi <= 0:
            TF = 'No'
        else:
            TF = 'Yes'
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(TF)

Submission status: Accepted

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

Submission status: Accepted

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

takahashi = a // d
aoki = c // b

if a%d != 0 :
    takahashi += 1
else :
    takahashi += 0

if c%b != 0 :
    aoki += 1
else :
    aoki += 0

if takahashi >= aoki :
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
A,B,C,D=map(int,input().split())
if A%D==0:
    k=int(A/D)
else:
    k=int(A/D)+1

if C%B==0:
    l=int(C/B)
else:
    l=int(C/B)+1


if l<=k:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

while True:
    #青木が攻撃受けてHP減る
    C = C - B
    if C <= 0:
        print('Yes')
        break
    A = A - D

    if A <= 0:
        print('No')
        break

Submission status: Accepted

Solution code:
#import numpy as np
import math
#from fractions import gcd

def main():

    ##get int
    first_input = list(map(lambda x:int(x), input().split(" ")))
    #second_input = list(map(lambda x:int(x), input().split(" ")))

    ##get float
    #first_input = list(map(lambda x:float(x), input().split(" ")))
    #second_input = list(map(lambda x:float(x), input().split(" ")))

    ##get string
    #first_input = input().split(" ")

    A = first_input[0]
    B = first_input[1]
    C = first_input[2]
    D = first_input[3]

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

flag = False
while (A > 0) and (C > 0):
    C -= B
    A -= D
    if C <= 0:
        flag = True

if flag:
    print ('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

if takaAttackNum != C/B:
  takaAttackNum+=1
if aokiAttackNum != A/D:
  aokiAttackNum+=1

if takaAttackNum <= aokiAttackNum :
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

takahashi_hp = int(raw_input[0])
takahashi_ak = int(raw_input[1])
aoki_hp = int(raw_input[2])
aoki_ak = int(raw_input[3])

while 1:
    aoki_hp -= takahashi_ak
    if aoki_hp <= 0:
        print('Yes')
        break
    takahashi_hp -= aoki_ak
    if takahashi_hp <= 0:
        print('No')
        break

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

n = max([int(a / d) + 1, int (c / b) + 1])

for i in range(n):
    a -= d
    c -= b
    # print(a,c)
    if c <= 0:
        print('Yes')
        exit()
    elif a <= 0:
        print('No')
        exit()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# 初期入力
import sys
input = sys.stdin.readline

A,B,C,D = (int(x) for x in input().split())
while 0 <A and 0 <C:
         
    C -=B
    if 0 <C:
        A -=D
if 0 <A:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A,B,C,D = map(int, input().split())
THP = A
AHP = C
while(True):
    #高橋のターン
    AHP -= B
    if(AHP <= 0):
        print("Yes")
        break
    #青木のターン
    THP -= D
    if(THP <= 0):
        print("No")
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

TT, TA, AT, AA = map(int, input().split())

while True:
    AT = AT - TA # T attack
    if (AT <= 0):
        print("Yes")
        break

    TT = TT - AA #A attack
    if (TT <= 0):
        print("No")
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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

    print(result)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

while(1):
  c = c-b
  if(c <= 0):
    print("Yes")
    sys.exit()
  a = a-d
  if(a <= 0):
    print("No")
    sys.exit()

Submission status: Accepted

Solution code:
import sys
#a,b,c,d
a,b,c,d = (int(x) for x in input().split())

while(1):
    c-=b
    if c<=0:
        print("Yes")
        sys.exit()
    a-=d
    if a<=0:
        print("No")
        sys.exit()

Submission status: Accepted

Solution code:
A,B,C,D = map(int,input().split())
if A%D==0:
    counter_ao=A//D
else:
    counter_ao=A//D+1

if C%B==0:
    counter_ta=C//B
else:
    counter_ta=C//B+1

if counter_ao >= counter_ta :
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
t=0
k=0
while a>0:
  a=a-d
  t=t+1
while c>0:
  c=c-b
  k=k+1
if t>k:
  print('Yes')
elif k>t:
  print('No')
elif t==k:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
for i in range(200):
    if c-b <= 0:
        print("Yes")
        break
    elif  a-d <= 0:
        print("No")
        break
    else:
        a = a-d
        c = c-b

Submission status: Accepted

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

takahashi = 0
aoki = 0

while A > 0:
  A = A - D
  takahashi += 1

while C > 0:
  C = C - B
  aoki += 1

# print(takahashi)
# print(aoki)

if aoki <= takahashi:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

if a % d != 0:
    ac += 1
if c % b != 0:
    bc += 1

if ac >= bc:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if (a-1)//d >= (c-1)//b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
A,B,C,D = map(int, input().split())
i = 0
while True:
    C -= B
    if C<=0:
        print("Yes")
        break
    if C>0:
        A -= D
        if A<=0:
            print("No")
            break
    i += 1

Submission status: Accepted

Solution code:
# coding: utf-8

Tp, Ta, Ap, Aa = map(int, input().split())

while True:
  # 高橋攻撃
  Ap = Ap - Ta
  if Ap <= 0:
    print('Yes')
    break
  # 青木攻撃
  Tp = Tp - Aa
  if Tp <= 0:
    print('No')
    break

Submission status: Accepted

Solution code:
def main():
    a = list(map(int, input().split()))
    A = a[0]
    B = a[1]
    C = a[2]
    D = a[3]
    for i in range(1000):
        C = C - B
        if C <= 0:
            print("Yes")
            break
        A = A - D
        if A <= 0:
            print("No")
            break
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

def solve(a: int, b: int, c: int, d: int) -> bool:
    while True:
        c -= b
        if c <= 0:
            return True
        a -= d
        if a <= 0:
            return False

# generated by online-judge-template-generator v4.1.0 (https://github.com/kmyk/online-judge-template-generator)
def main():
    A, B, C, D = map(int, input().split())
    ans = solve(A, B, C, D)
    print(ans and 'Yes' or 'No')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b,c,d=[int(i) for i in input().split(' ')]
ta = int(c/b + .9)
ao = int(a/d + .9)
print('No') if (ta > ao) else print('Yes')

Submission status: Accepted

Solution code:
#スペース区切りの整数の入力
A, B,C,D = map(int, input().split())

ans_a = A
ans_c = C
count_a = 0
count_c = 0

while(ans_a>0):
  ans_a = ans_a - D
  count_a = count_a +1
  #print(count_a,":",ans_a)

while(ans_c>0):
  ans_c = ans_c - B
  count_c = count_c +1
  #print(count_c,":",ans_c)
  
if(count_a>=count_c):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
hp_a,at_a,hp_b,at_b = map(int, input().split())


b_death = ((hp_b-0.01) // at_a) + 1
a_death = ((hp_a-0.01) // at_b) + 1


if b_death > a_death:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
# abc164_b.py
A,B,C,D = map(int,input().split())
for i in range(10000):
    if i%2 == 1:
        A = A - D
    else:
        C = C - B
    if C <= 0 or A <= 0:
        if A > C:
            print('Yes')
            break
        else:
            print('No')
            break

Submission status: Accepted

Solution code:
A,B,C,D = input().split()
a = int(A)
b = int(B)
c = int(C)
d = int(D)

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

Submission status: Accepted

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


import math
t = math.ceil(A / D)
a = math.ceil(C / B)

if t >= a:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math
a, b, c, d = map(int, input().split())
if math.ceil(a/d) + 1 > math.ceil(c/b) :
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

if A % D == 0:
	TK = A // D
else:
	TK = A // D + 1

if C % B == 0:
	AO = C // B
else:
	AO = C // B + 1

if AO <= TK:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
A,B,C,D=map(int,input().split())
t=0
while True:
    if t%2==0:
        C=C-B
    else:
        A=A-D
    
    if C<=0:
        print("Yes")
        break
    if A<=0:
        print("No")
        break
    t+=1

Submission status: Accepted

Solution code:
l = [int(x) for x in input().split()]
A, B, C, D = l[0], l[1], l[2], l[3]

takahashi = C//B
if C%B > 0:
    takahashi+=1
    
aoki = A//D
if A%D>0:
    aoki+=1


if aoki >= takahashi:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d = [int(i) for i in input().split(' ')]

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

Submission status: Accepted

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

cnt =0
while True:
    if a <= 0:
        print("No")
        exit()
    elif c <= 0:
        print("Yes")
        exit()

    if cnt %2 == 0:
        c -= b
    else:
        a-=d
    cnt+=1

Submission status: Accepted

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


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

Submission status: Accepted

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

e=a//d
f=c//b

if a%d>0 and c-(e+1)*b<=0:
  print('Yes')
elif a%d==0 and c-e*b<=0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
A,B,C,D=map(int,input().split())
X=C//B
Y=A//D
S=C%B
T=A%D
if S !=0:
    X=X+1

if T !=0:
    Y=Y+1

if X>Y:
    print("No")
else:
    print("Yes")

Submission status: Accepted

Solution code:
def main():
    A,B,C,D=map(int,input().split())
    for i in range(100):
        C-=B
        if C<=0:
            print('Yes')
            exit()
        A-=D
        if A<=0:
            print('No')
            exit()
main()

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
while True:
  a[2] = a[2] - a[1]
  if a[2] < 1:
    print("Yes")
    exit(0)
  a[0] = a[0] - a[3]
  if a[0] < 1:
    print("No")
    exit(0)

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
#L = list(map(int,input()split()))
T = c//b
#print(T,c%b,a,b,c,d)
A = a//d
if c%b>0:
    #(c%d>0)
    T +=1
if a%d>0:
    A +=1
#print(T,A)
if T <= A:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

while True:
    C = C-B
    if C<=0:
        break
    A = A-D
    if A<=0:
        break


if A<=0:
    print('No')
elif C<=0:
    print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
h1, a1, h2, a2 = map(int, input().split())

h2 -= a1
while True:
    if h2 > 0:
        h1 -= a2
    else:
        print("Yes")
        break
    if h1 > 0:
        h2 -= a1
    else:
        print("No")
        break

Submission status: Accepted

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

while True:
    C-=B
    if C<=0:
        print("Yes")
        exit()
    else:
        A-=D
        if A<=0:
            print("No")
            exit()

Submission status: Accepted

Solution code:
A, B, C, D = [int(x) for x in input().strip().split(" ")]

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

Submission status: Accepted

Solution code:
import math

A,B,C,D = [int(i) for i in input().split()]

num_T = math.ceil(A / D)
num_A = math.ceil(C / B)
#print(num_T, num_A)
if num_A > num_T:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

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

# if C//B+C%B<=A//D+A%D:
#     print('Yes')
# else:
#     print('No')

Submission status: Accepted

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

flag = 0
while a > 0 and c > 0:
    c = c - b
 
    if c <= 0:
        flag = 1
        break
    a = a - d
    if a <= 0:
        flag = 2
        break

if flag == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
for i in range(100):
  c=c-b
  if c<=0:
    break
  a=a-d
  if a<=0:
    break
if a>=c:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
A, B, C, D = map(int, input().split())
if math.ceil(A/D) >= math.ceil(C/B):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import math

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

taka = math.ceil(a/d)
ao = math.ceil(c/b)

if taka >= ao:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

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

if a[2]%a[1]==0:
  T = a[2]//a[1]
else:
  T = a[2]//a[1]+1

if a[0]%a[3]==0:
  A = a[0]//a[3]
else:
  A = a[0]//a[3]+1

if T<= A:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math

lines = sys.stdin.readlines()

x = lines[0].split(' ')
A =int(x[0])
B =int(x[1])
C =int(x[2])
D =int(x[3])

a = math.ceil(C/B)
b = math.ceil(A/D)

if a <= b:
    ans ='Yes'
else:
    ans ='No'

print(ans)

Submission status: Accepted

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

kaisu1 = math.ceil(C/B)
kaisu2 = math.ceil(A/D)

if kaisu1>kaisu2:
  print("No")
  
else:
  print('Yes')

Submission status: Accepted

Solution code:
tHP,tAT,aHP,aAT = map(int,input().split())

while tHP>0 and aHP>0:
    aHP = aHP - tAT
    if aHP<=0:
        print("Yes")
        break
    tHP = tHP - aAT
    if tHP<=0:
        print("No")
        break

Submission status: Accepted

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

taka = -(-C//B)
aoki = -(-A//D)

if taka > aoki:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

# print(a, b, c, d)

t_count = math.ceil(c / b)
a_count = math.ceil(a / d)

if t_count <= a_count:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import sys

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

while a>0 or b>0:
    c -= b
    if c <=0:
        print('Yes')
        sys.exit()
    else:
        a -= d
        if a<=0:
            print('No')
            sys.exit()

Submission status: Accepted

Solution code:
a,b,c,d = map(int, input().split())
i = 1
TreminingHP = a
AreminingHP = c
while(True):
  if i % 2 is 1:
    AreminingHP-= b
    if AreminingHP<=0:
      print("Yes")
      break
  else:
    TreminingHP-= d
    if TreminingHP<=0:
      print("No")
      break
  
  i+=1

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

t_hp, t_ap, a_hp, a_ap = map(int, input().split())
while True:
    if a_hp <= t_ap:
        print('Yes')
        break
    if t_hp <= a_ap:
        print('No')
        break

    a_hp -= t_ap
    t_hp -= a_ap

Submission status: Accepted

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

Submission status: Accepted

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

cnt = 0
while a > 0 and c > 0:
    if cnt % 2 == 0:
        c -= b
    else:
        a -= d
    cnt += 1
if cnt %2 == 1:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
statusList = input().split(" ")
health1=int(statusList[0])
strength1=int(statusList[1])
health2=int(statusList[2])
strength2=int(statusList[3])
while True:
    health2 = health2 - strength1
    if (health2 <= 0):
        print("Yes")
        break
    health1 = health1 - strength2
    if (health1 <= 0):
        print("No")
        break

Submission status: Accepted

Solution code:


a, b, c, d = [0] * 4

def format_input(filename = None):
	global a, b, c, d
	if filename == None:
		a, b, c, d = list(map(int, input().split()))

	elif filename == '__random__':
		from random import randint as rng
		a = rng(1, 10**1)
		b = rng(1, 10**1)
		c = rng(1, 10**1)
		d = rng(1, 10**1)
		print(a, b, c, d)

def get_answer():
	t_attack = (c - 1) // b
	a_attack = (a - 1) // d

	if t_attack <= a_attack:
		answer = 'Yes'
	else:
		answer = 'No'
	return answer

if __name__ == '__main__':
	format_input()

	ans = get_answer()
	print(ans)

Submission status: Accepted

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

res_A = A
res_C = C
count_A = 0
count_C = 0

while res_A > 0:
  res_A -= D
  count_A += 1

while res_C > 0:
  res_C -= B
  count_C += 1

if count_C <= count_A:
  print('Yes')
elif count_C > count_A:
  print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B,C,D=input().split()
A=int(A)
B=int(B)
C=int(C)
D=int(D)
def dif(x,y):
  if x%y ==0:
    z=x//y
  if x%y>0:
    z=x//y+1
  return(z)

N=dif(C,B)
M=dif(A,D)
if M>=N:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

while True:

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

Submission status: Accepted

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

taka=(c-1)//b+1
ao=(a-1)//d+1

if(ao>=taka):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math
A, B, C, D = map(int, input().split())
a = math.ceil(C / B)
c = math.ceil(A / D)
if a <= c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

while A > 0 or C > 0 :
    C = C - B
    if C <= 0 :
        print('Yes')
        break
    else :
        A = A - D
        if A <= 0 :
            print('No')
            break
        else :
            continue

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import numpy as np
import math

a,b,c,d=(float(x) for x in input().split());

takalife = math.ceil(a/d);
aolife = math.ceil(c/b);

if takalife==aolife or takalife>aolife:
  print("Yes");
else:
  print("No")

Submission status: Accepted

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

A = i[0]
B = i[1]
C = i[2]
D = i[3]
flg = 0
while(A>0 and C>0):
    C -= B
    if(C<=0):
        flg = 1
        break
    A -= D
    if(A<=0):
        flg = 2
        break

if(flg == 1):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
list = input().split()
a = int(list[0])#体力
b = int(list[1]) #攻撃力
c = int(list[2])#体力
d = int(list[3])#攻撃力

#最初
while c>0 and a>0:
    c = c - b
    if c <= 0:
        print("Yes")
        break
    else:
        pass

    a = a -d
    if a<= 0:
        print("No")
        break
    else:
        pass

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

if math.ceil(c/b) <= math.ceil(a/d):
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c,d =map(int,input().split())
takalife=a
aokilife=c
for i in range(101):
  aokilife=aokilife-b
  if aokilife<=0:
      print("Yes")
      exit()
  takalife=takalife-d
  if takalife<=0:
      print("No")
      exit()

Submission status: Accepted

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

flag = True
while flag:
  c -= b
  if c <= 0:
    print("Yes")
    flag = False
  else:
    a -= d
    if a <= 0:
      print("No")
      flag = False

Submission status: Accepted

Solution code:
Ht, At, Ha, Aa = map(int, input().split())

i = 1
while i > 0:
  Ha -= At
  if Ha <= 0:
    print('Yes')
    break
  Ht -= Aa
  if Ht <= 0:
    print('No')
    break

Submission status: Accepted

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

while (c > 0) and (a > 0):
    a = a - d
    c = c - b

if a > 0:
    print('Yes')
elif c > 0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
A,B,C,D=(int(x) for x in input().split())
t=A/D
a=C/B
if A<=D:
    t=1
elif A%D==0:
    t=t
else:
    t=t+1
if C<=B:
    a=1
elif C%B==0:
    a=a
else:
    a=a+1

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