Problem:


Score : 200 points

Problem Statement

Takahashi and Aoki will have a battle using their monsters.

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

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

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

Constraints

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

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

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

Sample Input 1

10 9 10 10

Sample Output 1

No

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

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

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

Sample Input 2

46 4 40 5

Sample Output 2

Yes



Sample input:
10 9 10 10


Sample output:
No

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split(" "))
Takahashi = {
  "attack": A,
  "HP": B
}

Aoki = {
  "attack": C,
  "HP": D
}
# print("resolve", A, B, C, D)
winner = True
while True:
  Aoki["HP"] = Aoki["HP"] - Takahashi["attack"]
  if (Aoki["HP"] <= 0):
    winner = True
    break

  Takahashi["HP"] = Takahashi["HP"] - Aoki["attack"]
  if (Takahashi["HP"] <= 0):
    winner = False
    break

print("Yes" if winner else "No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

import sys
import math


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (a, b, c, d) = [int(e) for e in lines[0].split(' ')]

    return (a, b, c, d)


def solve(a, b, c, d):

    ta = c // b 
    ao = a // d

    if ta >= ao:
        result = 'Yes'
    else:
        result = 'No'
    
    return result
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Wrong Answer

Solution code:
A,B,C,D=input().split()
a=int(A)
b=int(B)
c=int(C)
d=int(D)
p=int(c%b)
q=int(a%d)
if p<=q:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

aoD = C // B
aoR = C % B
takD = A // D
takR = A % D

if aoD == takD:
    print('Yes') if takR >= aoR else print('No')
elif takD < aoD:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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: Wrong Answer

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

if A == C and D > B:
    print("No");
elif A == C and D < B:
    print("Yes")
elif  C/B >= A/D:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

if a%d == 0:
    tao -=1
if c%b == 0:
    ttk -=1

if tao > ttk:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
nums = input()
nums = nums.split()
taka_hp = int(nums[0])
taka_pw = int(nums[1])
aoki_hp = int(nums[2])
aoki_pw = int(nums[3])

for i in range(0,100):
  if i%2 == 0 :
    aoki_hp -= taka_pw
  else:
    taka_hp -= aoki_pw
  if taka_hp <= 0:
    print("No")
    break
  elif aoki_hp <= 0:
    print("Yes")
    break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
class monster:

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


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

def attack(player1, player2):
    player1.hp -= player2.ap

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

print(battle(takahashi, aoki))

Submission status: Wrong Answer

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

X = C // B
Y = A // D

M = C % B
N = A % D

if X > Y and M > 0 and N > 0:
  print('Yes')
elif X == Y and M > 0 and N == 0:
  print('No')
elif X == Y and M == 0 and N == 0:
  print('Yes')
elif X == Y and M == 0 and N > 0:
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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


if a + b >= c + d:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B, C, D = map(int, input().split(" "))
Takahashi = {
  "attack": A,
  "HP": B
}

Aoki = {
  "attack": C,
  "HP": D
}
# print("resolve", A, B, C, D)
winner = True
while True:
  Aoki["HP"] = Aoki["HP"] - Takahashi["attack"]
  if (Aoki["HP"] < 0):
    winner = True
    break

  Takahashi["HP"] = Takahashi["HP"] - Aoki["attack"]
  if (Takahashi["HP"] < 0):
    winner = False
    break

print("Yes" if winner else "No")

Submission status: Wrong Answer

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

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

while A > 0:
    A -= D

if A > 0:
    while C > 0:
        C -= B

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

Submission status: Wrong Answer

Solution code:
N=list(map(int,input().split()))
takahashi=N[2]/N[1]
aoki=N[0]/N[3]

print(takahashi)
print(aoki)

if aoki%1!=0:
   aoki=aoki+1 

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

Submission status: Wrong Answer

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

a_count = A // D + (1 if A % D else 0)
t_count = C // B + (1 if C % B else 0)
ans = 'No' if t_count <= a_count else 'Yes'
#  print(t_count, a_count)
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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



Thit = A
Tatk = B
Ahit = C
Aatk = D
win = False

while Thit <= 0 or Ahit <= 0:
    Ahit = Ahit - Tatk
    if Ahit <= 0:
        win = True
        break
    Thit = Thit - Aatk
    if Thit <= 0:
        break

if win:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while A and C > 0:
  A -= D
  C -= B

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
a,b,c,d = map(int,input().split())
t_1 = a//b
t_2 = a%b
a_1 = c//d
a_2 = c%d
if t_1>a_1:
  print('Yes')
  sys.exit()
elif  t_1<a_1:
  print('No')
  sys.exit()
elif t_2 < a_2:
  print('Yes')
  sys.exit()
elif t_2 > a_2:
  print('No')
  sys.exit()
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a%d != 0 :
    if (a//d) + 1 >= c//b :
        print("Yes")
else :
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if c % b == 0:
    takahashi = c // b
else:
    takahashi = c // b + 1

if a % d == 0:
    aoki = a // d
else:
    aoki = a // d + 1

print(takahashi)
print(aoki)

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

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int,input().split())
#print(A,B,C,D)
def judge(A,B,C,D):
    for i in range(100):
        C = C-B
        A = A - D
        if C==0:
            return "Yes"
        elif A == 0:
            return "No"
print(judge(A,B,C,D))

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a - b == 0 or c - d == 0:
    print("no")
else:
    print("yes")

Submission status: Wrong Answer

Solution code:
ABCD = list(map(int, input().split()))
A = ABCD[0]
B = ABCD[1]
C = ABCD[2]
D = ABCD[3]
if B%C != 0:
    if D*(B//C) >= A:
        print('No')
    else:
        print('Yes')
else:
    if D*(B//C - 1) >= A:
        print('No')
    else:
        print('Yes')

Submission status: Wrong Answer

Solution code:
def solve(a, b, c, d):
    while a <= 0 or c <= 0:
        a -= d
        c -= b

    if a > c:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    inputs = list(map(int, input().split()))
    solve(inputs[0], inputs[1], inputs[2], inputs[3])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A,B,C,D=map(int,input().split())
T=[A,B]
K=[C,D]
K[0]=K[0]-T[1]
N_1=T[0]//K[1]
N_2=K[0]//T[1]

if N_1>N_2:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = list(map(int, input().split() ) )
t = 1
while k[0] <=0 or k[2] <=0:
  if t == 1:
    k[2] -= k[1]
    t=2
  else:
    k[0] -= k[3]
    t=1
if t==1:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

import random
while  True:
    C -= B
    A -= D

    if C <= 0 :
        print("yes")
        break
    elif A <= 0:
        print("No")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range (100):
    A = a - i*b
    C = c - i*d
    
if(A <= 0):
    print('No')
else :
    print('Yes')

Submission status: Wrong Answer

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

takahashi_attacks = A // D if A % D == 0 else A // D + 1
aoki_attacks = C // B if C % B == 0 else C // B + 1

print('Yes') if takahashi_attacks <= aoki_attacks else print('No')

Submission status: Wrong Answer

Solution code:
n, m, c, d = map(int, input().split())
if (n - m) < (c -d):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:


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

for i in range(10* 5):
    if C <= 0:
        print("Yes")
        break
    C -=B
    if A <= 0:
        print("No")
        break
    A-=D

Submission status: Wrong Answer

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

count_T = A // D
count_A = C // B

is_alive_T = bool(A % D)
is_alive_A = bool(C % B)

# print("count_T: {}, count_A: {}, is_alive_T: {}, is_alive_A: {}".format(count_T, count_A, is_alive_T, is_alive_A))

if count_T < count_A:
    print('Yes')
elif count_T > count_A:
    print('No')
else:
    if is_alive_T and is_alive_A:
        print('Yes')
    elif not is_alive_T and not is_alive_A:
        print('Yes')
    elif not is_alive_T and is_alive_A:
        print('No')
    else:
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
h1, a1, h2, a2 = map(int,input().split())
while h1 * h2 > 0:
    h2 -= a1
    if h2 == 0:
        print("Yes")
    h1 -= a2
    if h1 == 0:
        print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

#print(a,b,c,d)

while((a or c) > 0):
    c -= b
    a -= d
    #print(a,c)

if((c == 0) and (a != 0)):
        print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
a, b, c, d = map(int, input().split())
if a % d == 0:
    taka = a / d
else:
    taka = a / d + 1

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

c_tai = c // b
a_tai = a // d

if c_tai - a_tai >= 1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
nums = input()
nums = nums.split()
taka_hp = int(nums[0])
taka_pw = int(nums[1])
aoki_hp = int(nums[2])
aoki_pw = int(nums[3])

for i in range(0,100):
  if taka_hp <= 0:
    print("No")
    break
  elif aoki_hp <= 0:
    print("Yes")
    break
  if i%2 == 0 :
    aoki_hp -= taka_pw
  else:
    taka_hp -= aoki_pw

Submission status: Wrong Answer

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

while ah >= 0:
    ah = ah - ta
    cnt_t += 1

while th >= 0:
    th = th - aa
    cnt_a += 1

if cnt_t > cnt_a or cnt_t == cnt_a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

if A // D == 0:
    A_zero_num = A // D
else:
    A_zero_num = A // D +1

if C // B == 0:
    C_zero_num = C // B
else:
    C_zero_num = C // B +1

if A_zero_num >= C_zero_num:
    print("No")

else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
def main():
    a = list(map(int, input().split()))
    A = a[0]
    B = a[1]
    C = a[2]
    D = a[3]
    if C%B == 0:
        kaisu_t = C/B
    else:
        kaisu_t = C/B+1
    if A%D == 0:
        kaisu_k = A/D
    else:
        kaisu_k = A/D+1
    if kaisu_t <= kaisu_k:
        print("Yes")
    else:
        print("No")
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
HP_t, ATK_t, HP_a, ATK_a = [int(x) for x in input().split()]
while True:
    HP_t = HP_t - ATK_a
    if HP_t <= 0:
        print('No')
        break
    HP_a = HP_a - ATK_t
    if HP_a <= 0:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
import sys
a,b,c,d = map(int,input().split())
t_1 = a//b
t_2 = a%b
a_1 = c//d
a_2 = c%d
if t_1>a_1:
  print('Yes')
  sys.exit()
elif  t_1<a_1:
  print('No')
  sys.exit()
elif t_2 < a_2:
  print('Yes')
  sys.exit()
elif t_2 > a_2:
  print('No')
  sys.exit()
else:
  print('Yes')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
class monster:

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


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

def attack(player1, player2):
    player1.hp -= player2.ap

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

print(battle(takahashi, aoki))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#スペース区切りの整数の入力
tairyoku_A, kougeki_B,tairyoku_C,kougeki_D = map(int, input().split())

one = int(tairyoku_A /kougeki_D)
two = int(tairyoku_C /kougeki_B)


if(one>two):
  print("Yes")
elif(one<two):
  print("No")
else:
  print("No")

Submission status: Wrong Answer

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: Wrong Answer

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

x = c % b
y = a % d

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

while A > 0:
    A -= D

while C > 0:
    C -= B

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
A,B,C,D = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

x = c % b
y = a % d

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

Submission status: Wrong Answer

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

#高橋　→　青木
# takahashi = a // d
# aoki = c // b


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

takahashi = a
aoki = c

for _ in range(100):
    takahashi -= d
    aoki -= d
    if takahashi <= 0:
        print('No')
        break
    elif aoki <= 0:
        print('Yes')
        break

Submission status: Wrong Answer

Solution code:
HP_t, ATK_t, HP_a, ATK_a = [int(x) for x in input().split()]
while True:
    HP_t = HP_t - ATK_a
    if HP_t < 0:
        print('No')
        break
    HP_a = HP_a - ATK_t
    if HP_a < 0:
        print('Yes')
        break

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

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

if a % d != 0:
    attack_num_a = a //d
else:
    attack_num_a = a// d + 1

if c % b != 0:
    attack_num_t = c // b
else:
    attack_num_t = c // b + 1

if attack_num_t >= attack_num_a:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

if int(c//b) > int(a//d):
    print('Yes')
elif int(c//b) == int(a//d):
    if c%b==0:
        print('Yes')
    elif a%d!=0:
        print('Yes')
    else:
        print('No')
else:
    print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a_count = A // D + (1 if A % D else 0)
t_count = C // B + (1 if C % B else 0)
ans = 'No' if t_count < a_count else 'Yes'
#  print(t_count, a_count)
print(ans)

Submission status: Wrong Answer

Solution code:
A,B,C,D=input().split()
a = int(A)
b = int(B)
c = int (C)
d = int(D)
if a+b>c+d:
    print ('Yes')
else:
    print ('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def solve():
    a, b, c, d = map(int, input().split())
    
    x = c / b
    y = a / d


    if c % b == 0 and x - y <= 1:
        return 'Yes'
        

    return 'Yes' if x < y else 'No'

print(solve())

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

aoki = int(c/b)
if c % b != 0:
    aoki += 1

taka = int(a/d)
if a % d != 0:
    taka += 1

if aoki <= taka+1:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


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

for i in range(10* 5):
    C -=B
    if C <= 0:
        print("Yes")
        break
    A-=D
    if A <= 0:
        print("No")
        break

Submission status: Wrong Answer

Solution code:
import sys
a,b,c,d = map(int,input().split())
t_1 = a//b
t_2 = a%b
a_1 = c//d
a_2 = c%d
if t_1>a_1:
  print('Yes')
  sys.exit()
elif  t_1<a_1:
  print('No')
  sys.exit()
elif t_2 < a_2:
  print('Yes')
  sys.exit()
else:
  print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#print(a,b,c,d)

while((a or c) >= 0):
    c -= b
    a -= d
    #print(a,c)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#B
import math
a, b, c, d = map(int, input().split())
aot = a // d
hat = c // b
# print(aot,hat)
if hat < aot:
    print('No')
else:
    print('Yes')

Submission status: Wrong Answer

Solution code:
tk_hp, tk_atk, ao_hp, ao_atk = map(int,input().split())

if ao_hp / tk_atk < tk_hp / ao_atk :
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

taka = int(c/b)
taka_a = c%b
aoki = int(a/d)
aoki_a = a%d

if aoki < taka:
  print('Yes')
elif taka < aoki:
  print('No')
else:
  if aoki_a == 0:
    print('No')
  else:
    if taka_a == 0:
      print('Yes')
    else:
      print('No')