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:
# coding: utf-8
# Your code here!

def main():
    takahashi_physical,takahashi_offensive,aoki_physical,aoki_offensive = map(int,input().split())
    
    offence_turn = 0
    while True:
        offence_turn = offence_turn % 2
        
        if offence_turn == 0:
            aoki_physical -= takahashi_offensive
        else:
            takahashi_physical -= aoki_offensive
        
        if takahashi_physical <= 0:
            break
        if aoki_physical <= 0:
            break
        offence_turn += 1
        
    if offence_turn == 0:
        print("Yes")
    else:
        print("No")
    

if __name__ == "__main__":
    main()

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 math

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

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

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

Submission status: Accepted

Solution code:
# AtCoder
A, B, C, D = map(int, input().split())
thp = (A+D-1)//D
ahp = (C+B-1)//B
if thp >= ahp:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math

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

tkhs = math.ceil(c/b)
aok = math.ceil(a/d)

if tkhs <= aok:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A,B,C,D = map(int, readline().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

def main():
    A,B,C,D = list(map(int, input().split()))
    
    print("Yes" if math.ceil(C / B) <= math.ceil(A / D) else "No")
    pass

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
cnt=0
while True:
  cnt+=1
  if cnt%2==0:
    s=a-(cnt/2)*d
    if s<=0:
      print('No')
      break
      
  else:
    s=c-(cnt+1)/2*b
    if s<=0:
      print('Yes')
      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())
while a > 0 and c > 0:
  c -= b
  if c <= 0:
    break
  a -= d
  
if a < c:
  print('No')
else:
  print('Yes')

Submission status: Accepted

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

Submission status: Accepted

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

for i in range(111111):
  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(i) for i in input().split())


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:
A,B,C,D = map(int, input().split())
for i in range(1, 200):
  # 高橋
  if i%2 != 0:
    C=C-B
    if C <=0:
      print('Yes')
      exit(0)
  else:
    A=A-D
    if A <=0:
      print('No')
      exit(0)

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
while a>0 and 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
def main():
    a,b,c,d = map(int, input().split())
    k1 = math.ceil(a/d)
    k2 = math.ceil(c/b)
    if k1==k2: print("Yes")
    elif k1>k2: print("Yes")
    else: print("No")

main()

Submission status: Accepted

Solution code:
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[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:
a,b,c,d=input().split()
a=int(a)
b=int(b)
c=int(c)
d=int(d)
while(1):
    c-=b
    if(c<=0):
        print("Yes")
        break
    a-=d
    if(a<=0):
        print("No")
        break

Submission status: Accepted

Solution code:
import math

nums = [int(e) for e in input().split()]

A = math.ceil(nums[2]/nums[1])
T = math.ceil(nums[0]/nums[3])
if A <= T:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]

if nums[2]%nums[1] == 0:
    A = nums[2]//nums[1]
else:
    A = nums[2]//nums[1] + 1

if nums[0]%nums[3] == 0:
    T = nums[0]//nums[3]
else:
    T = nums[0]//nums[3] + 1
 
if A <= T:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]

T = nums[0]
t = nums[1]
A = nums[2]
a = nums[3]
while T > 0 and A > 0:
    A = A - t
    T = T - a

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

Submission status: Accepted

Solution code:
A, B, C, D = map(int, input().split())
if -(-C // B) <= -(-A // D):
    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:
a, b, c, d = list(map(int, input().split()))
while a > 0:
    c -= b
    if c <= 0:
        print('Yes')
        exit()
    a -= d
print('No')

Submission status: Accepted

Solution code:
import math

i = list(map(int, input().split()))
turnT = math.ceil(i[0] / i[3]);
turnA = math.ceil(i[2] / i[1]);
        
if turnT >= turnA:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c, d = list(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())
a = True
while a:
    C -= B
    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())
count = 0
while A > 0 and C > 0:
    count += 1
    if count % 2 == 1:
        C -= B
    else:
        A -= D
if count % 2 == 1:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
[A, B, C, D] = list(map(int, input().split()))
X = math.ceil(A / D)
Y = math.ceil(C / B)
if Y > X:
    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")
    exit()
  a -= d
  if(a<=0):
    print("No")
    exit()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from dataclasses import dataclass


@dataclass
class Monster:
    health: int
    strength: int

    def attack(self, other: "Monster"):
        other.health -= self.strength

    def is_dead(self) -> bool:
        return self.health <= 0


def battle(first: Monster, second: Monster) -> bool:
    while True:
        first.attack(second)
        if second.is_dead():
            return True

        second.attack(first)
        if first.is_dead():
            return False


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

    t_monster = Monster(health=a, strength=b)
    a_monster = Monster(health=c, strength=d)

    if battle(t_monster, a_monster):
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

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


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

Submission status: Accepted

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


# if c // b > a // d:
#     print("Yes")
# else:
#     print("No")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
T_HP, T_S, A_HP, A_S = list(map(int, input().split()))

T_Turn = True
while T_HP > 0 and A_HP > 0:
    if T_Turn:
        A_HP -= T_S
    else:
        T_HP -= A_S
    T_Turn = not T_Turn
if T_HP > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
#2020-5-11作成

A, B, C, D = ( int(x) for x in input().split() )

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

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
T = True
while a > 0 and c > 0:
    if T:
        c -= b
    else:
        a -= d
    T = not T

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

Submission status: Accepted

Solution code:
import math


def main(a, b, c, d):
    tkhs = math.ceil(a / d)
    aok = math.ceil(c / b)

    if tkhs >= aok:
        return 'Yes'
    else:
        return 'No'


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

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 = list(map(int, input().split()))
while A>0 and B>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())

t_num = math.ceil(c / b)
a_num = math.ceil(a / d)

if t_num <= a_num:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from __future__ import annotations

from dataclasses import dataclass


@dataclass
class Monster:
    HP: int
    AT: int

    def dead(self):
        return self.HP <= 0

    def attack(self, other_monster: Monster):
        other_monster.HP -= self.AT


def actual(A, B, C, D):
    takahasi = Monster(A, B)
    aoki = Monster(C, D)

    while True:
        takahasi.attack(aoki)

        if takahasi.dead():
            return 'No'

        aoki.attack(takahasi)

        if aoki.dead():
            return 'Yes'

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

print(actual(A, B, C, D))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
import sys

INF = 1145141919
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int, D: int):
    while A > 0 and C > 0:
        C -= B
        if C <= 0:
            return YES
        A -= D
        if A <= 0:
            return NO


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    D = int(next(tokens))  # type: int
    print(solve(A, B, C, D))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

while(A>0 and C>0):
    C-=B
    if(C<=0):
        ans="Yes"
    A-=D

print(ans)

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 and c > 0:
    c -= b
    if c <= 0:
        ret = 1
    else:
        a -= d
        if a <= 0:
            ret = 2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C, D = list(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()))
takahashi_flag = False
while True:
    C -= B
    if C <= 0:
        takahashi_flag = True
        break
    A -= D
    if A <= 0:
        break
if takahashi_flag:
    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:
# -*- coding: utf-8 -*-
import numpy as np

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

while a > 0 and c > 0:
    if i % 2 == 1:
        a -= d
    else:
        c -= b
    i += 1

if a > 0:
    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())
flag = 0
while a > 0:
  c -= b
  if c <= 0:
    flag = 1
    break
  a -= d
if flag == 1:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c,d = map(int,input().split())
takahasi = (c+b-1)//b 
aoki  = (a+d-1)//d
if takahasi <= aoki:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    import sys
    input=sys.stdin.readline
    import math
    a,b,c,d=map(int,input().split())
    x=math.ceil(c/b)
    y=math.ceil(a/d)
    if y<x:
        print("No")
    else:
        print("Yes")
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

print("No")

Submission status: Accepted

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

flag = 0
while(A>0 and C>0):
    if(flag == 0):
        C = C - B
        flag = 1
    else:
        A = A - D
        flag = 0

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

Submission status: Accepted

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

while(A or 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(A/D)<math.ceil(C/B):
  print("No")
else:
  print("Yes")

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
i=0
while a*c>0:
    if i%2==0:
        c+=(-b)
    else:
        a+=(-d)
    i+=1
    
if a>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 -= B
  if C <= 0:
    print('Yes')
    break
  A -= D
  if A <= 0:
    print('No')
    break

Submission status: Accepted

Solution code:
th, ta, ah, aa = list(map(int, input().split()))

while True:
  ah -= ta
  if ah <= 0:
    print('Yes')
    break
  
  th -= aa
  if th <= 0:
    print('No')
    break

Submission status: Accepted

Solution code:
a,b,c,d=map(int,input().split())
print('YNeos'[~-a//d<~-c//b::2])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
T_HP, T_AT, A_HP, A_AT = map(int, input().split())
while True:
  A_HP -= T_AT
  if A_HP <= 0:
    print("Yes")
    break
  T_HP -= A_AT
  if T_HP <= 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:
import numpy as np


def main():
    a, b, c, d = map(int, input().split())
    cb = np.ceil(c / b)
    da = np.ceil(a / d)
    if cb <= da:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A, B, C, D = [int(n) for n in input().split()]
for _ in range(100):
    C = C - B
    if C <= 0:
        break
    A = A - D
    if A <= 0:
        break
print('Yes' if C <= 0 else 'No')

Submission status: Accepted

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

Submission status: Accepted

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

while A and C !=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 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())
n = 1
while A > 0 and C > 0:
  if n % 2 == 1:
    C = C - B
    ans = "Yes"
    n = n + 1
  else:
    A = A - D
    ans = "No"
    n = n + 1
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

c1 = (C+B-1) // B  # 高橋君が何回攻撃したら青木君のHPが０になるか
c2 = (A+D-1) // D

# print(c2, c2)

if c1 == c2:
    ans = 'Yes'
elif c1 < c2:
    ans = 'Yes'
else:
    ans = 'No'

print(ans)

Submission status: Accepted

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

ans = None
while True:
    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 = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
def solve(a, b, c, d):
    f = True
    while a > 0 and c > 0:
        if f:
            c -= b
            f = False
        else:
            a -= d
            f = True
    if a > 0:
        return 'Yes'
    else:
        return 'No'


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

Submission status: Accepted

Solution code:
import itertools
import math

a, b, c, d = map(int, input().split())
count = 0
if(a // d > c // b):
    count = c//b
else:
    count = a//d

c -= b*count
a -= d*count
if c==0:
    print("Yes")
    quit()
if a==0:
    print("No")
    quit()

if c-b <= 0: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
a, b, c, d = map(int, input().split())
a_tmp = (c + b - 1) // b
b_tmp = (a + d - 1) // d
if a_tmp <= b_tmp:
    print('Yes')
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

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

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 = list(map(int, input().split()))
while a > 0 or c > 0:
    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 青木の攻撃力

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

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=map(int,input().split())
counta = math.ceil(A/D)
countb = math.ceil(C/B)

if counta>=countb:
    print("Yes")
else :
    print("No")

Submission status: Accepted

Solution code:
import math

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

qlock_takahashi = math.ceil(C/B)
qlock_aoki = math.ceil(A/D)

if(qlock_takahashi <= qlock_aoki) :
  print("Yes")
else :
  print("No")

Submission status: Accepted

Solution code:
a,b,c,d = [int(i) for i 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:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

IN=lambda : map(int, input().split())
LIN=lambda : list(IN())
mod=1000000007

#+++++

def main():
	#a = int(input())
	t_hp, t_at, a_hp, a_at = IN()
	#s = input()
	i=0
	while t_hp > 0 and a_hp>0:
		if i % 2 == 0:
			a_hp-=t_at
		else:
			t_hp -= a_at
		i+=1
	ret = 'Yes' if t_hp > 0 else 'No'
	print(ret)
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
# 10 9 10 10
# 10 / 10 = 1 ...1度の攻撃で高橋くんは負ける
# 10 / 9 = 1.1.. 2度の攻撃が必要

# math.ceil(A / D) == math.ceil(C / B) のときは先行の勝利

import math

def battle_v1(A: int, B: int, C: int, D: int) -> str:
    while True:
        C -= B
        if C <= 0:
            return 'Yes'

        A -= D
        if A <= 0:
            return 'No'

def battle_v2(A: int, B: int, C: int, D: int) -> str:
    n = math.ceil(C / B)
    m = math.ceil(A / D)

    if n > m:
        return 'No'
    else:
        return 'Yes'

if __name__ == '__main__':
    A, B, C, D = map(int, input().split())
    res = battle_v2(A, B, C, D)
    print(res)

Submission status: Accepted

Solution code:
# B * (n + 1) >= C
# D * n < A

# n >= C / B - 1
# n < A / D
# A / D > n >= C / B - 1
# A / D > C / B -1

def battle(A: int, B: int, C: int, D: int) -> str:
    while True:
        C -= B
        if C <= 0:
            return 'Yes'

        A -= D
        if A <= 0:
            return 'No'

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

Submission status: Accepted

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

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

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())
while a >= 0 or c >= 0:
	c -= b
	a -= d
	if c <= 0:
		print('Yes')
		exit()
	if a <= 0:
		print('No')
		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 = list(map(int,input().split()))
i = 0
while a > 0 and c > 0:
    if i%2:a -= d
    else:c -= b
    i+=1
if a>0: print("Yes")
else: print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
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:
import sys

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

import math

T = math.ceil(A / D)
M = math.ceil(C / B)

if T >= M:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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


def main():
    t_HP, t_AT, a_HP, a_AT = map(int, input().split())

    while True:
        a_HP -= t_AT
        if a_HP <= 0:
            print('Yes')
            return
        t_HP -= a_AT
        if t_HP <= 0:
            print('No')
            return


if __name__ == "__main__":
    main()

Submission status: Accepted

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

takahashi = c//b
if c%b!=0:
    takahashi += 1
    
aoki = a//d
if a%d!=0:
    aoki += 1

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

taka_life = A
taka_att = B
ao_life = C
ao_att = D

while((taka_life > 0) & (ao_life > 0)):
    ao_life -= taka_att
    taka_life -= ao_att
    
    
if(ao_life <= 0):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math

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

A = int(A)  # 高橋の体力
B = int(B)  # 高橋の攻撃力
C = int(C)  # 青木の体力
D = int(D)  # 青木の攻撃力

E = math.ceil(C/B)  # 高橋の攻撃回数
F = math.ceil(A/D)  # 青木の攻撃回数

if E <= F:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c,d=list(map(int,input().split()))
flag=False
while True:
  c-=b
  if c<=0:
    flag=True
    break
  a-=d
  if a<=0:
    break
if flag:
  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
  a=a-d
  if c<=0:
    print("Yes")
    break
  if a<=0:
    print("No")
    break