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:
#--- Battle

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

i = 0
j = 0
while (A > 0):
  i = i + 1
  A = A - D
#  print(A)

while (C > 0):
  j = j + 1
  C = C - B
#  print(C)

#print(i, j)
if (i >= j):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import math as mh
A,B,C,D=map(int,input().split())
if mh.ceil(A/D)==mh.ceil(C/B):
    print("Yes")
elif mh.ceil(A/D)<mh.ceil(C/B):
    print("No")
elif mh.ceil(A/D)>mh.ceil(C/B):
    print("Yes")

Submission status: Accepted

Solution code:
import math

A,B,C,D = [int(x) for x in input().split(' ')]
t = math.ceil(C / B)
s = math.ceil(A / D)

if t > s:
    print('No')
else:
    print('Yes')

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:
    break
  A = A - D
  if A <= 0:
    break
  
if A > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

x=a//d
if a%d!=0:
  x+=1
y=c//b
if c%b!=0:
  y+=1

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

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())
while True:
    c -= b
    if c <= 0:
        print("Yes")
        exit()
    a -= d
    if a <= 0:
        print("No")
        exit()

Submission status: Accepted

Solution code:
from sys import stdin
A, B, C,D = [int(x) for x in stdin.readline().rstrip().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:
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:
A, B, C, D = map(int, input().split())
flag = 100
while flag ==100:
    C -= B
    if flag==100 and C<=0:
        flag = 0
    A -= D
    if flag==100 and A<=0:
        flag = 1
if flag==0: print('Yes')
else: print('No')

Submission status: Accepted

Solution code:
#coding UTf-8
a,b,c,d = (int(x) for x 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())

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

Submission status: Accepted

Solution code:
i = input().split()
a,b,c,d=int(i[0]),int(i[1]),int(i[2]),int(i[3])
if(a<=100 and b<=100 and c<=100 and d<=100 and a>0 and b>0 and c>0 and d>0):
    while(1):
        c-=b
        if(c<=0):
            print("Yes",end="")
            break
        a-=d
        if(a<=0):
            print("No",end="")
            break

Submission status: Accepted

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

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

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

Submission status: Accepted

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

while c >= 0 :

    c -= b
    if c <= 0 :

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

        print("No")
        break

Submission status: Accepted

Solution code:
s = input().split()
A, B, C, D = int(s[0]), int(s[1]), int(s[2]), int(s[3])
while True:
    C -= B
    if C<=0:
        print('Yes')
        break
    A -= D
    if A<=0:
        print('No')
        break

Submission status: Accepted

Solution code:
#S = input()
#S, W2 = input().split()
#I = int(input())
A, B, C, D = map(int, input().split())
#L = list(map(int, input().split()))

#D1 = []
#D2 = [[]] * 4
#D1 = [0] * 5
#D2 = [[0] * 5 for i in range(4)]
#D3 = [[[0] * 5 for i in range(4)] for i in range(3)]

X = (C + B - 1)//B
Y = (A + D - 1)//D 

print( 'Yes' if Y>=X else 'No')

Submission status: Accepted

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

def battle(A, B, C, D):
  C = C-B
  if C <= 0:
    return "Yes"
  A = A-D
  if A <= 0:
    return "No"
  return battle(A,B,C,D)
  
print(battle(A, B, C, D))

Submission status: Accepted

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

if c%b == 0 and a%d == 0:
    aoki = c//b
    takahasi = a//d
elif c%b == 0 and a%d !=0:
    aoki = c//b
    takahasi = a//d + 1
elif c%b != 0 and a%d == 0:
    aoki = c//b + 1
    takahasi = a//d
else:
    aoki = c//b + 1
    takahasi = a//d + 1            





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

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

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



# while a>0 and c>0:
#     c = c
print("Yes" if a > c else "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 = list(map(int,input().split()))

S = C
T = A

while S>0 and T>0:
    S=S-B
    T=T-D
    if S<=0 and T<=0 or S<=0 and T>=0:
        print("Yes")

    if T<=0 and S>0:
         print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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
    if C <= 0:
        print('Yes')
        break
    A -= D
    if A <= 0:
        print('No')
        break

Submission status: Accepted

Solution code:
import sys
A,B,C,D=map(int,input().split())
T=[A,B]
K=[C,D]
N_1=(T[0]/K[1])
N_2=K[0]/T[1]
while N_2>0 or N_1>0:
    N_2-=1
    if not N_2>0:
        print('Yes')
        sys.exit()
    N_1-=1
    if not N_1>0:
        print('No')
        sys.exit()

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())
print('Yes' if math.ceil(C/B) <= math.ceil(A/D) else 'No')

Submission status: Accepted

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

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

print("Yes" if A > 0 else "No")

Submission status: Accepted

Solution code:
def main():

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

count_takashi = -(-c//b)
count_aoki = -(-a//d)

if count_takashi <= count_aoki:
    print('Yes')
else: 
    print('No')

Submission status: Accepted

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

ans = 'Yes'

def takahashiattack():
    global A
    global B
    global C
    global D
    global ans
    C -= B
    if C <= 0:
        print(ans)
    else:
        tanakaattack()
    
def tanakaattack():
    global A
    global B
    global C
    global D
    global ans
    A -= D
    if A <= 0:
        ans = 'No'
        print(ans)
    else:
        takahashiattack()
    
takahashiattack()

Submission status: Accepted

Solution code:
import sys
A,B,C,D = map(int, input().split())
for i in range(110):
    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 = [ int(el) for el in input().split()]
#print(a,b,c,d)
hd = True
while hd:
  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-=B
    if C<=0:
        print("Yes")
        break
    A-=D
    if A<=0:
        print("No")
        break

Submission status: Accepted

Solution code:
A, B, C, D = [int(v) for v 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:

#a,b=(int(x) for x in input().split()) #数値の時

a,b,c,d=(int(x) for x 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:
from math import ceil
a,b,c,d=map(int,input().split())
cnt1=ceil(c/b)
cnt2=ceil(a/d)
if cnt1<=cnt2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

for i in range(1, 101):
    if c - b <= 0:
        print('Yes')
        break
    else:
        c = c - b
        if a - d <= 0:
            print('No')
            break
        else:
            a = a - d

Submission status: Accepted

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

for i in range(101):
    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())
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: Accepted

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

while min(a,b) > 0 :
    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 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:
i = input()

a, b, c, d= i.split()
a = int(a)
b = int(b)
c = int(c)
d = int(d)

while (a > 0) or (c > 0):
    c = c - b
    if (a < 1) or (c < 1):
        break
    a = a - d

if a < 1:
    print('No')
else:
    print('Yes')

Submission status: Accepted

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

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

Submission status: Accepted

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

def main():
    a, b, c, d = map(int, input().split())
    e = -(-c // b)
    f = -(-a // d)
    if e > f:
        print("No")
    else: 
        print("Yes")
        
if __name__ == '__main__':
    main()

Submission status: Accepted

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

a_hp = a
b_hp = c

result = ""
while True :
	b_hp -= b
	if b_hp <= 0 :
		result ="Yes"
		break
		
	a_hp -= d
	if a_hp <= 0 :
		result = "No"
		break
print(result)

Submission status: Accepted

Solution code:
abcd = [int(n) for n in input().split()]
while True:
    abcd[2] -= abcd[1]
    if abcd[2] <= 0:
        print("Yes")
        break
    abcd[0] -= abcd[3]
    if abcd[0] <= 0:
        print("No")
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A, B, C, D = map(int, input().split())
lifeT = A
lifeA = C

for battle_num in range(1, 100):
    if battle_num % 2 != 0:
        lifeA = lifeA - B
    else:
        lifeT = lifeT - D

    if lifeA <= 0 or lifeT <= 0:
        break

if battle_num % 2 != 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

T =math.ceil(C/B)
K =math.ceil(A/D)
if T <= K:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
line = input().rstrip().split(" ")
a=int(line[0])    #高木の体力
b=int(line[1])    #高木の攻撃
c=int(line[2])    #青木の体力
d=int(line[3])    #青木の攻撃

i=0
while i>=0:
    if i%2==0:#偶数
        c=c-b
    
    elif i%2==1:
        a=a-d
    
    i=i+1
    
    if c<=0:
        i=0-1
    elif a<=0:
        i=0-1
    
    
if a<c:
    print("No")
else :
    print("Yes")

Submission status: Accepted

Solution code:
a = list(map(int, input().split()))
import math
b = math.ceil(a[2] / a[1])
c = math.ceil(a[0] / a[3])
if b > c:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
s=input().split(" ")
t_p=int(s[0])
t_a=int(s[1])
a_p=int(s[2])
a_a=int(s[3])
i=0
while i<=0:
    a_p-=t_a
    if a_p <= 0:
        print("Yes")
        break
    t_p-=a_a
    if t_p <= 0:
        print("No")
        break

Submission status: Accepted

Solution code:
import sys

def main():

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math

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

takahashi = math.ceil(A/D)
aoki = math.ceil(C/B)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
THP,TAT,AHP,AAT = map(int,input().split())
while THP > 0 and AHP > 0 :
    AHP -= TAT
    THP -= AAT
if THP <= 0 and AHP > 0 :
    print("No")
elif AHP <= 0 and THP > 0 :
    print("Yes")
else:
    print("Yes")

Submission status: Accepted

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

def battle(hp, pw):
	count = 0
	while hp > 0:
		hp -= pw
		count += 1
	return count-1

taka_count = battle(a,d)
ao_count = battle(c,b)

if taka_count >= ao_count:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

for i in range(max(C//B+1,A//D+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())


while c > 0 and a > 0:
    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 True:
  C-=B
  if C<=0:
    break
  A-=D
  if A<=0:
    break

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
A,B,C,D = map(int,input().split())
X = math.ceil(C/B)
Y = math.ceil(A/D)
if X <= Y:
    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=input().split(' ')
a=int(a)
b=int(b)
c=int(c)
d=int(d)
var=1
while(var==1):
  c=c-b
  a=a-d
  if (a<=0):
      break
if (c<=0):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

"""S,W = map(int,input().split())
if S<=W:
    print('unsafe')
else:
    print('safe')

N = int(input())
S = [input() for i in range(N)]
print(len(set(S)))



S = list(input())[::-1]
N = len(S)
M = [(int(S[i])*10**i)%2019 for i in range(N)]
SS = [M[0]]
for i in range(1,N):
    
    SS.append((SS[-1]+M[i])%2019)
count = [0]*2019
for i in range(N):
    count[SS[i]] += 1

ans = 0
for c in range(len(count)):
    if c==0:
        ans += (count[c] * (count[c] + 1)) // 2
    ans += (count[c] * (count[c] - 1)) // 2

print(ans)
"""
A,B,C,D = map(int,input().split())
f = True
while True:
    if C-B>0:
        C-=B
    else:
        f = True
        break
    if A-D>0:
        A -= D
    else:
        f = False
        break
    
if f:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

while True:
    a -= B
    t -= D
    if a <= 0 or t <= 0:
        break
if a <= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

for i in range(101):
    c = c - b
    if c <= 0:
        print("Yes")
        break
    else:
        a = a - d
        if a <= 0:
            print("No")
            break

Submission status: Accepted

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

# print(c/b, a/d)
if c/b < a/d or math.ceil(c/b) - math.ceil(a/d) < 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

flag = 1

while True:
    if M[2] > 0:
        M[2] = M[2]-M[1]
        flag = flag * -1
        if M[2] <= 0:
            break
    else:
        break
    if M[0] > 0:
        M[0] = M[0]-M[3]
        flag = flag * -1
        if M[0] <= 0:
            break
    else:
        break
    
#print(M[0])
#print(M[2])
#print(flag)

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

Submission status: Accepted

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

Submission status: Accepted

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

myturn = True
while a>0 and c>0:
    if myturn:
        c -= b
    else:
        a -= d
    myturn = not myturn

print('Yes' if c<=0 else 'No')

Submission status: Accepted

Solution code:
a = list(map(int,input().split()))
t1 = a[0]#hp
t2 = a[1]#atc
a1 = a[2]
a2 = a[3]

if a1%t2 == 0:
  if a1/t2 < t1/a2+1:
    print("Yes")
  else:
    print("No")
else:
  if a1/t2 < t1/a2:
    print("Yes")
  elif (a1//t2 == t1//a2) and (t1%a2 != 0):
    print("Yes")
  elif (a1//t2 == t1//a2) and (t1%a2 == 0):
    print("No")
  else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
a,b,c,d = map(int,input().split())
a_life = c-b
t_life = a-d
if a_life<=0:
  print('Yes')
  sys.exit()
elif t_life<=0:
  print('No')
  sys.exit()


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

Submission status: Accepted

Solution code:
import sys
import math
import bisect

def solve(a, b, c, d):
    cur = 0
    while True:
        if cur == 0:
            c -= b
            if c <= 0:
                return True
        else:
            a -= d
            if a <= 0:
                return False
        cur = (cur + 1) % 2
    return None

def main():
    a, b, c, d = map(int, input().split())
    if solve(a, b, c, d):
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Submission status: Accepted

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

else:
    if c%b==0:
        if (a//d+1) >= c/b:
            print("Yes")
        else:
            print("No")
    else:
        if (a//d+1) >= (c//b+1) :
            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])


def zero(x,y):
  if x <= 0:
    return("Yes")
  elif y <= 0:
    return("No")

for i in range(100):
  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())
E=math.ceil(A/D)
F=math.ceil(C/B)
if E>=F:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def inputlist():
    return [int(i) for i in input().split()]


def main():
    A, B, C, D = inputlist()
    boolTurnTaka = True
    while A > 0 and C > 0:
        if boolTurnTaka:
            C -= B
            boolTurnTaka = False
        else:
            A -= D
            boolTurnTaka = True

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
import math
a,b,c,d=map(int,input().split())
x=math.ceil(a/d)
y=math.ceil(c/b)
#print(x, y)
if y<=x:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

for i in range(200):
  if i%2==0:
    c-=b
  else:
    a-=d
  if a<=0:
    print("No")
    break
  if c<=0:
    print("Yes")
    break

Submission status: Accepted

Solution code:
A,B,C,D = (int(x) for x in input().split())
f = True
while True:
    if f:
        C = C - B
        f = False
    else:
        A = A - D
        f = True
    if A <= 0:
        print('No')
        break
    elif C <= 0:
        print('Yes')
        break
    else:
        continue

Submission status: Accepted

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

if A % D == 0:
    TA = A // D - 1
else:
    TA = A // D 

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

if TA >= AO:
    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
    a = a-d
    if c <= 0:
        print('Yes')
        break
    elif a <= 0:
        print('No')
        break

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
T=0
A=0
while c>0:
  c-=b
  T+=1
while a>0:
  a-=d
  A+=1 
if A>=T:
  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=(int(x) for x in 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 math import ceil
a,b,c,d=list(map(int, input().split()))
if ceil(c/b)<=ceil(a/d):
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
a,b,c,d = (int(x) for x 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())
print('Yes' if (-(-c // b)) <= (-(-a // d)) else 'No')

Submission status: Accepted

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

if c%b!=0:
    t+=1
if a%d!=0:
    s+=1
if t<=s:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a, b, c, d = map(int,input().split())
e = math.ceil(a / d)
f = math.ceil(c / b)

if e >= f:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from sys import stdin, stdout  
import math
def main(): 
	a, b, c, d = [int(x) for x in stdin.readline().split()] 
	# h s h s
	if math.ceil(c / b) <= math.ceil(a / d):
		stdout.write('Yes \n')
	else:
		stdout.write('No \n')
if __name__ == "__main__": 
	main()

Submission status: Accepted

Solution code:
import math
in1=input()
in2=in1.split()
a=int(in2[0])
b=int(in2[1])
c=int(in2[2])
d=int(in2[3])
taka=math.ceil(a/d)
ao=math.ceil(c/b)
if taka<ao:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
#!python3

iim = lambda: map(int, input().rstrip().split())

def resolve():
    A, B, C, D = iim()

    def cnt(a, b):
        c, d = divmod(a, b)
        if d:
            c += 1
        return c

    a1 = cnt(C, B)
    a2 = cnt(A, D)
    print("Yes" if a1 <= a2 else "No")

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
# coding: utf-8

import sys
import math
import collections
import itertools
from inspect import currentframe
INF = 10 ** 10
MOD = 10 ** 9 + 7
def input() : return sys.stdin.readline().strip()
def gcd(x, y) : return y if x % y == 0 else gcd(y, x % y)
def lcm(x, y) : return (x * y) // gcd(x, y)
def I() : return int(input())
def LI() : return [int(x) for x in input().split()]
def RI(N) : return [int(input()) for _ in range(N)]
def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]

A, B, C, D = LI()

while True:
    C = C - B
    A = 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 -= B
    if C <= 0:
        print("Yes")
        break

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

Submission status: Accepted

Solution code:
A, B, C, D = list(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:
import math

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

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())
e = c // b
f = a // d
g = c % b
h = a % d
if e < f:
    print("Yes")
if e > f+1:
    print("No")
if e == f+1:
    if g == 0 and h !=0:
        print("Yes")
    else:
        print("No")
if e == f:
    if g != 0 and h ==0:
        print("No")
    else:
        print("Yes")

Submission status: Accepted

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

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

Submission status: Accepted

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