Problem:


Score : 200 points

Problem Statement

Takahashi and Aoki will have a battle using their monsters.

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

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

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

Constraints

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

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B C D

Output

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

Sample Input 1

10 9 10 10

Sample Output 1

No

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

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

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

Sample Input 2

46 4 40 5

Sample Output 2

Yes



Sample input:
10 9 10 10


Sample output:
No

Submission status: Wrong Answer

Solution code:
from sys import stdin
input = stdin.readline

import sys

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

if C - B <= 0:
    print("yes")
    sys.exit()
elif A - D <= 0:
    print("No")
    sys.exit()

aoki = C - B
taka = A - D

for i in range(1000):
    aoki -= B
    if aoki <= 0:
        print("Yes")
        break
    
    taka -= D
    if taka <= 0:
        print("No")
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
THP,TAT,AHP,AAT = map(int,input().split())
while THP 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: Wrong Answer

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

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

if ta < ao:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

while M[0] > 0 or M[2] > 0:
    M[0] -= M[3]
    if M[0] <= 0:
      print('No')
      break
    M[2] -= M[1]
    if M[2] <= 0:
      print('Yes')
      break

Submission status: Wrong Answer

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


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
A, B, C, D = input().split()
 
if math.ceil(int(C)*1.0/(int(B)*1.0)) >= math.ceil(int(A)*1.0/(int(D)*1.0)):
  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:
    if c%b != 0 and a%d == 0:
        print("No")
    else:
        print("Yes")
elif x < y:
    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:
s = [input() for i in range(1)] 
li = list(map(int, s[0].split()))
for i in range(0,100):
    if i % 2 == 0:
        li[2] = li[2] - li[1]
        if li[2] <= 0:
            print("Yes")
            break
    else:
        li[0] = li[0] - li[3]
        if li[0] <= 0:
            print("No")
            break

Submission status: Wrong Answer

Solution code:
a, b, c, d = [int(x) for x in input().split()]
print(["No", "Yes"][ (a + b) > (c + d)])

Submission status: Wrong Answer

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

for i in range(1,100):
    c = c - b
    if c == 0:
        break
    else:
        a = a - d
        if a == 0:
            break
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 < c/b:
	print('Yes')
else:
	print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
c-b
e=0
f=0
while a-d>0:
    g=a-d
    e+=1
    a=g
while c-b>0:
    h=c-b
    f+=1
    c=h
if e<f:
    print('Yes')
elif f==0:
    print('Yes')
elif e==f:
    print('No')
else:
    print('No')

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 int(C/B) == int((A/D)+1):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(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())


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c, d = [int(x) for x in input().split()]
print(["No", "Yes"][ (a + b) >= (c + d)])

Submission status: Wrong Answer

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")
  else:
    print("No")

Submission status: Wrong Answer

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

for x in A,B,C,D:
    C-B 
    A-D
else:
    if C-B <= A-D :
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

Solution code:
A,B,C,D = map(int, input().split())
if (A and B and C and D) <=100 and (A and B and C and D) >=1:
    AOKI = C-B
    TAKA = A-D
    if AOKI>=0:
        print("Yes")
    elif TAKA>=0:
        print("NO")

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
#a,b :先攻
takahashi = c//b
aoki = a//d
if takahashi < aoki:
  print("Yes")
elif takahashi == aoki:
  if not a%d ==0:
    print("Yes")
elif takahashi > aoki:
  if takahashi == aoki + 1 and c <=takahashi*(b+1):
    print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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 b <= 0:
		print('no')
		break

Submission status: Wrong Answer

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

while (Cn > 0) or (An > 0):
    Cn = Cn - B
    if Cn > 0:
        An = An - D
    else:
        break

if An > 0:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

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

while True:
    C = C-B
    print('C:',C)
    if C<=0:
        print('Yes')
        break
    A = A-D
    print('A:',A)
    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,b,c,d = map(int, input().split())

T = c//b + c%b
A = a//d + a%d
if c//b == 0:
    print("Yes")
    quit()
elif a//d == 0:
    print("No")
    quit()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a,b,c,d=list(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())

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

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = c // b
a_n = a // d
t_r = c % b
a_r = a % d
if  ((t_r > 0) and (a_r > 0)) or (a_r > 0) or ((t_r == 0) and (a_r == 0)):
  if t_n-1 <= a_n:
    print('YES')
  else:
    print('NO')
else:
  if t_n-1 < a_n:
    print('YES')
  else:
    print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if not N[0]%N[3]==0:
   c=N[0]//N[3]+1

else:
    c=N[0]//N[3]
if d>=c:
    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 True:
    C -= B
    A -= D
    if A == 0:
        print('No')
        break
    elif C == 0:
        print('Yes')
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(1,100):

    if c-(b*i) <= 0:
        print("Yes")
        break
    elif a-(d*i) <= 0:
        print("No")
        break
    else:
        None

Submission status: Wrong Answer

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

if B/C >= 1:
    print("Yes")
elif D/A >= 1:
    print("No")
elif A/D + 1 > B/C:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
tp = i[0]
ta = i[1]
ap = i[3]
aa = i[3]
while tp > 0 and ap > 0:
  #print("たかはしのこうげき！")
  ap = ap - ta
  #print("たかはしは",ta,"ポイントのダメージをあおきにあたえた！")
  #print("あおきののこりたいりょくは",ap)
  #print("あおきのこうげき！")
  if ap <= 0:
    print('Yes')
    break
  tp = tp - aa
  #print("あおきは",aa,"ポイントのダメージをたかはしにあたえた！")
  #print("たかはしののこりたいりょくは",tp)
  if tp <= 0:
    print('No')
    break
#if tp > 0:
#  print('Yes')
#else:
#  print('No')

Submission status: Wrong Answer

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

for x in A,B,C,D:
    C-B 
    A-D
else:
    if C-B < A-D :
        print('Yes')
    else:
        print('No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

aoki_count = A//D
takahashi_count = C//B

if aoki_count < takahashi_count:
    print("Yes")
elif aoki_count == takahashi_count:
    if A%D > 0:
        print("Yes")
    else:
        print("No")
elif aoki_count > takahashi_count:
    print("No")

Submission status: Wrong Answer

Solution code:
a,b,c,d=map(int,input().split())
if c//b<=d//a:
    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:
    print("Yes")
elif taka<=0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Tk = a+b
Ak = c+d

if Tk > Ak:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
K = input().split(" ")
k = [int(n) for n in K]
t =k[0]//k[3]
a = k[2]//k[1]
if t > a:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:
THP,TAT,AHP,AAT = map(int,input().split())
while THP 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: 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:
A, B, C, D = map(int, input().split())

if A // D < C // B or (A // D == C // B and A % D == 0 and C % B > 0):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    a,b,c,d=map(int,input().strip().split())
    jishu1=0
    jishu2=0
    while True:
        a=a-d
        jishu1+=1
        if a<=0:
            break
    while True:
        c=c-b
        jishu2+=1
        if a<=0:
            break
    if jishu1<=jishu2:
        print("No")
    else:
        print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=()
B=()
C=()
D=()
game=True

A, B, C, D = map(int, input().split())
E=A
F=B
G=C
H=D
while game==True:   
      C=C-F
      A=A-G
      D=D-E
      B=B-H
      if C<0 or C == 0:
            print('Yes')
            game=False
            break
      if A<0 or A == 0 :
            print('No')
            game=False
            break
      if D<0 or D == 0:
            print('Yes')
            game=False
            break
      if B<0 or B == 0:
            print('No')
            game=False
            break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (a//d) < (c//b):
    print("No")
elif ((a//d) == (c//b)) and (c%b != 0) and (a%d == 0):
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

Solution code:
N = [int(e) for e in input().split()]
if(N[2]%N[1] !=0):
    ans = N[2]//N[1]+1
else:
    ans = N[2]//N[1] 
for i in range(0,ans):
    N[0] -= N[3]
    if(N[0] <= 0):
        print('No')
        break
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B, C, D =map(int, input().split())
#高橋君のモンスターは体力が Aで攻撃力がB
#青木君のモンスターは体力がCで攻撃力がD

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
tak_health, tak_attack, aoki_health, aoki_attack = list(map(int, input().split()))

game = True

while game:
    if aoki_health > 0:
        aoki_health -= tak_attack
    if tak_health > 0:
        tak_health -= aoki_attack
    if tak_health <= 0:
        print("No")
        game = False
    if aoki_health <= 0:
        print("Yes")
        game = False

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

if x == y:
    if c%b != 0 and a%d == 0:
        print("No")
    else:
        print("Yes")
elif x > y:
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

Solution code:
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]
count1=0
count2=0
while N_2>0:
    N_2-=1
    count2+=1
while N_1>0:
    N_1-=1
    count1+=1
if N_2>N_1:
    print('Yes')
else:
    print('No')

Submission status: Wrong Answer

Solution code:

def Sol(taka_health,taka_stregnth,aoki_health,aoki_stregnth):
    
    if taka_health%aoki_stregnth != 0:
        moves_aoki = int(taka_health/aoki_stregnth) + 1
    else:
        moves_aoki = int(taka_health/aoki_stregnth)
    
    if aoki_health%taka_stregnth != 0:
        moves_taka =int(aoki_health/taka_stregnth) + 1
    else:
        moves_taka = int(aoki_health/taka_stregnth)
    
    print(moves_aoki,moves_taka)
    if moves_aoki < moves_taka:
        print("NO")
    else:
        print("YES")
    return

    

#for t in range(int(input())):
n,k,d,c = map(int,input().split())
#n = int(input())
#arr = []
#for i in range(n):
#    time = list(map(int,input().split()))
#    time = time[0] + (time[1]/60)
#    arr.append(time)
#arr = list(map(int,input().split()))
#k = input()
#n = int(input())
Sol(n,k,d,c)

Submission status: Wrong Answer

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

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

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

if c%b==0:
    y=c//b
else:
    y=c//d+1
    
if y<=x:
    print("Yes")
elif x<y:
    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 True:
    C -= B
    A -= D
    if A == 0 or C == 0:
        break

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

aoki = c
takahashi = a

for i in range(101):
  if aoki - b > 0: 
    if takahashi - d <= 0: #高橋負け
      print("No")
      break
    else: #戦闘続く
      takahashi = takahashi - d
      aoki = aoki - c
      continue
  else: #高橋勝ち
    print("Yes")
    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=list(map(int,input().split()))
aoki = A[2]-A[1]
taka = A[0]-A[3]
if aoki<=0:
    print("Yes")
elif aoki>taka:
    print("No")
elif taka<=0:
    print("No")
else:
    print("Yes")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b, c, d= map(int, input().split())
A =a%2
B =b%2
C =c%2
D =d%2
if abs(A-B)> abs(C-D):
    print('No')
else:
    print('yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

A_attack = C / B
C_attack = A / D

if A_attack == 1 or C_attack == 1:
  if B >= D:
    print('Yes')
  else:
    print('No')  
elif A_attack < C_attack + 1:
  print('Yes')
else:
  print('No')

Submission status: Wrong Answer

Solution code:
T_HP,T_Atk,A_HP,A_Atk = map(int,input().split())

Takahashi = [T_HP,T_Atk]
Asakura = [A_HP,A_Atk]

    
while True:    
    Asakura[0] -= Takahashi[1]
    if Asakura[0] < 0:
        print("Yes")
        exit()
    
    
    Takahashi[0] -= Asakura[1]
    if Takahashi[0] < 0:
        print("No")
        exit()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
monsterAHP, monsterAAttack, monsterBHP, monsterBAttack = map(int, input().split(' '))
turnA = monsterBHP / monsterAAttack
modA = monsterBHP % monsterAAttack
turnB = monsterAHP / monsterBAttack
modB = monsterAHP % monsterBAttack

if(modA != 0):
  turnA = turnA + 1
  
if(modB != 0):
  turnB = turnB + 1

if(turnA > turnB):
  print('No')
else:
  print('Yes')

Submission status: Wrong Answer

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

def shohai(A, B, C, D):
    while A > 0 and C > 0:
        C -= B
        A -= D
        if C <= 0:
            return('Yes')
            break
        if A <= 0:
            return('No')
            break
      

shohai(A,B,C,D)

Submission status: Wrong Answer

Solution code:
rist = input().split()
for i in range(100):
  if int(rist[2])-int(rist[1])<0:
    print("Yes")
    break
  else:
    rist[2] = int(rist[2])-int(rist[1])
 
  if int(rist[0])-int(rist[3])<0:
    print("No")
    break
  else:
    rist[0] = int(rist[0])-int(rist[3])

Submission status: Wrong Answer

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

while (a > 0) and (c > 0):
  a = a - d
  c = c - b
 
if c <= 0:
  print("yes")
elif a <= 0:
  print("no")

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
a, b, c, d = map(int, input().split())
if a/d >= c/b:
    print('Yes')
elif  c%b == 0 and 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(a>0 and c>0):
    a-=d
    c-=b

if c<=0:
    print("Yes")

if a<=0:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
import sys 
import math
try:
	sys.stdin = open('input.txt', 'r') 
	sys.stdout = open('output.txt', 'w')
except:
	pass
input = sys.stdin.readline
for tt in range(1):
	a,b,c,d = map(int,input().split())
	if math.ceil(a/d)==1 and math.ceil(c/b) != 1:
		print("No")
	elif math.ceil(c/b)-1 <= math.ceil(a/d):
		print ("Yes")
	else:
		print("No")

Submission status: Wrong Answer

Solution code:
s = [input() for i in range(1)] 
li = list(map(int, s[0].split()))
t = li[0]
a = li[2]
for i in range(0,100):
    if i % 2 == 0:
        a = a - li[1]
        if a <= 0:
            print("Yes")
            break
    if i % 2 == 1:
        t = t - li[3]
        if t <= 0:
            print("No")
            break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = [int(e) for e in input().split()]
for i in range(0,N[2]//N[1]):
    N[0] -= N[3]
    if(N[0] <= 0):
        print('No')
        break
else:
    print('Yes')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c,d = map(int, input().split())
#a,b :先攻
takahashi = c//b
aoki = a//d
if takahashi < aoki:
  print("Yes")
elif takahashi == aoki:
  if not a%d ==0:
    print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

if A%D!=0:
  jud1=A//D+A%D
else:
  jud1=A//D

if C%B!=0:
  jud2=C//B+C%B
else:
  jud2=C//B
  

if jud1>=jud2:
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = input().split(" ")
TL = int(N[0])
TA = int(N[1])
AL = int(N[2])
AA = int(N[3])
a = 0

while a == 0:
  AL = AL - TA
  if AL <= 0:
    a = 1
    break
  TA = TA - AA
  if TA <= 0:
    a = 2
    break
if a == 1:
  print("Yes")
if a == 2:
  print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

takahashi = a
aoki = c

for i in range(1,101):
    if i%2 == 0:
        takahashi -= d
    else:
        aoki -= b

    if takahashi <= 0:
        print('No')
        break
    elif aoki <= 0:
        print('Yes')
        break

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


n = c // b
m = c % b

if m != 0:

    if a - n * d <= 0 | a - (n-1) * d <= 0:
        print('No')

    else:
        print('Yes')


if m == 0:
    if a - (n-2) * d <= 0 | a - (n-1) * d <= 0:
        print('No')

    else:
        print('Yes')

Submission status: Wrong Answer

Solution code:
s = [input() for i in range(1)] 
li = list(map(int, s[0].split()))
t = li[0]
a = li[2]
for i in range(0,100):
    if i % 2 == 0:
        a = li[2] - li[1]
        if a <= 0:
            print("Yes")
            break
    if i % 2 == 1:
        t = li[0] - li[3]
        if t <= 0:
            print("No")
            break