TnT/Multi_CodeNet4Repair huggingface dataset:
Problem: 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`.

Submission attempts (in order):
a, b, c, d = [int(s) for s in input().split(" ")]
while(a > 0 and c > 0):
  c -= b
  if c <= 0:
    print("Yes")
    break
  a -= d
  if c <= 0:
    print("No")
    break

a, b, c, d = [int(s) for s in input().split(" ")]
while(True):
  c -= b
  if c <= 0:
    print("Yes")
    break
  a -= d
  if c <= 0:
    print("No")
    break

a, b, c, d = [int(s) for s in input().split(" ")]
while(True):
  c -= b
  if c <= 0:
    print("Yes")
    break
  a -= d
  if a <= 0:
    print("No")
    break

Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
import math
tl, ta, al, aa = map(int, input().split(" ")
print("Yes" if math.ceil(al/ta) < math.ceil(tl / aa) else "No")

import math
tl, ta, al, aa = map(int, input().split(" "))
print("Yes" if math.ceil(al/ta) - 1 < math.ceil(tl / aa) else "No")

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d = map(int,input().split())
while a>0 and c>0:
  c=c-b
  a=a-d
if a=0:
  print("No")
else:
  print("Yes")
  

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,C,D = map(int, input().split())
print("Yes"if (C//B)<=(A//D)else"No")

A,B,C,D = map(int, input().split())
print("Yes"if ((C-1)//B+1)<=((A-1)//D+1)else"No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b, c, d = map(int,input().split())

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

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

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



Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')

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

a,b,c,d=map(int,input().split())
e=[]
f=[]
g=c-b
h=a-d
while c>0:
    g=c-b
    e.append(g)
    c=g
    h=a-d
    f.append(h)
    a=h
if len(e)!=1:
    if e[len(e)-1]<f[len(f)-2]:
        print('Yes')
    else:
        print('No')
elif len(e)==1:
    print('Yes')


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

a,b,c,d=map(int,input().split())
e=[]
f=[]
g=c-b
h=a-d
while c>0:
    g=c-b
    e.append(g)
    c=g
    h=a-d
    f.append(h)
    a=h
if e[len(e)-1]>f[len(f)-2]:
    print('Yes')
elif e[len(e)-1]<0:
    print('Yes')
else:
    print('No')


a,b,c,d=map(int,input().split())
e=[]
f=[]
g=c-b
h=a-d
while c>0:
    g=c-b
    e.append(g)
    c=g
    h=a-d
    f.append(h)
    a=h
if len(e)!=1:
    if e[len(e)-1]<f[len(f)-2]:
        print('Yes')
    elif e[len(e)-1]==f[len(f)-2]:
        print('No')
    else:
        print('No')
elif len(e)==1:
    print('Yes')


a,b,c,d=map(int,input().split())
e=[]
f=[]
g=c-b
h=a-d
while c>0:
    g=c-b
    e.append(g)
    c=g
    h=a-d
    f.append(h)
    a=h
if len(e)!=1:
    if e[len(e)-1]<f[len(f)-2]:
        print('Yes')
    elif e[len(e)-1]==f[len(f)-2]:
        print('No')
    else:
        print('No')
elif len(e)==1:
    print('Yes')


a,b,c,d=map(int,input().split())
e=[]
f=[]
g=c-b
h=a-d
while c>0:
    g=c-b
    e.append(g)
    c=g
    h=a-d
    f.append(h)
    a=h
print(e,f)
if e[len(e)-1]>f[len(f)-2]:
    print('Yes')
elif e[len(e)-1]<0:
    print('Yes')
else:
    print('No')


a,b,c,d=map(int,input().split())
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 g<h:
    print('Yes')
elif f==0:
    print('Yes')
elif e==f:
    print('No')
else:
    print('No')
    


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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
A, B, C, D = map(int, input().split())

T_kougeki = C / B     
A_kougeki = A / D     

if T_kougeki >= A_kougeki:
    print('Yes')

else:
    print('No')

import math

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

T_kougeki = C / B     
A_kougeki = A / D     

if math.ceil(T_kougeki) <= math.ceil(A_kougeki):   
    print('Yes')

else:
    print('No')

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a, b, c, d = list(map(int, input().split()))

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d=map(int,input().split())
cntt=0
cnta=0
while a<=0:
    a-=d
    cntt+=1
while c<=0:
    c-=b
    cnta+=1
if cntt>=cnta:
    print("Yes")
else:
    print("No")

a,b,c,d=map(int,input().split())
cntt=0
cnta=0
while a>0:
    a-=d
    cntt+=1
while c>0:
    c=c-b
    cnta+=1

if cntt>=cnta:
    print("Yes")
else:
    print("No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a, b, c, d = map(int, input().split())

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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
arg = input()
a = (int)(arg.split())[0]
b = (int)(arg.split())[1]
c = (int)(arg.split())[2]
d = (int)(arg.split())[3]

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

arg = input()
a = int((arg.split())[0])
b = int((arg.split())[1])
c = int((arg.split())[2])
d = int((arg.split())[3])

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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

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


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d = map(int,input().split())
ans = "No"
while True:
  c -= b if c <= 0
    ans = "Yes" break
  a -= d if a <= 0 break
print(ans)

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
# -*- coding: utf-8 -*-


strT, pwT, strA, pwA = map(int, input().split())

while strT > 0 or strA > 0:
    strA -= pwT
    if strA <= 0:
        break
    strT -= pwA
    print(strT, strA)

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

# -*- coding: utf-8 -*-


strT, pwT, strA, pwA = map(int, input().split())

while strT > 0 or strA > 0:
    strA -= pwT
    if strA <= 0:
        break
    strT -= pwA

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d=map(int,input().split())
if c/b>a/d:
    print("Yes")
else:
    print("No")


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


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


Verdicts: Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,C,D=map(int,input().split())
s=0
t=0
while A>0:
  A-=D
  s+=1
while C>0:
  C-=B
  t+=1
if s<=t:
  print("Yes")
else:
  print("No")
  


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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a, b, c, d = map(int, input().split(" "))


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

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

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
numbers = input().split(" ")
healthOfT = int(numbers[0])
strengthOfT = int(numbers[1])
healthOfA = int(numbers[2])
strengthOfA = int(numbers[3])
for i in(0,100):
	healthOfA=healthOfA-strengthOfT
	if healthOfA<0:
		a=i
		break
for p in(0,100):
	healthOfT=healthOfT-strengthOfA
	if healthOfT<0:
		break
if p<i:
	print("No")
else:
	print("Yes")

numbers = input().split(" ")
healthOfT = int(numbers[0])
strengthOfT = int(numbers[1])
healthOfA = int(numbers[2])
strengthOfA = int(numbers[3])
times_T_win = healthOfA//strengthOfT + 1
times_A_win = healthOfT//strengthOfA + 1
if times_T_win >= times_A_win:
	print("Yes")
else:
	print("No")



numbers = ["0"]*4
numbers = input().split(" ")
healthOfT = int(numbers[0])
strengthOfT = int(numbers[1])
healthOfA = int(numbers[2])
strengthOfA = int(numbers[3])
times_T_win = healthOfA//strengthOfT + 1
times_A_win = healthOfT//strengthOfA + 1
if times_T_win <= times_A_win:
	print("Yes")
else:
	print("No")

numbers = input().split(" ")
healthOfT = int(numbers[0])
strengthOfT = int(numbers[1])
healthOfA = int(numbers[2])
strengthOfA = int(numbers[3])
times_T_win = healthOfA//strengthOfT + 1
times_A_win = healthOfT//strengthOfA + 1
if times_T_win <= times_A_win:
	print("Yes")
else:
	print("No")
 

import math

numbers = ["0"]*4
numbers = input().split(" ")
healthOfT = int(numbers[0])
strengthOfT = int(numbers[1])
healthOfA = int(numbers[2])
strengthOfA = int(numbers[3])
times_T_win = math.ceil(healthOfA/strengthOfT)
times_A_win = math.ceil(healthOfT/strengthOfA)
if times_T_win <= times_A_win:
	print("Yes")
else:
	print("No")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
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')


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


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


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A, B, C, D = map(int, input().split())
a=0
c=0
while C-B>0:
    C-=B
    a+=1
while A-D>0:
    A-=D
    c+=1
print(a,c)
print("Yes") if c>=a else print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
#!/usr/bin/env python
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()


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


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

    print(result)


if __name__ == "__main__":
    main()


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


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

    print(result)


if __name__ == "__main__":
    main()


Verdicts: Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A, B, C, D = map(int,input().split())
for i in 100:
    C-=B
    A-=D
    if C<=0 and A<=0:
        print("Yes")
    elif C>0 and A<=0:
        print("No")
    else:
        continue

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,C,D = input().split()

if int(A) + 1//(int(D)*2) >= int(C) + 1//(int(B)**2):
    print('Yes')

else:
    print('No')    

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

if (int(A) - 1)//(int(D)) >= (int(C) - 1)//(int(B)):
    print('Yes')

else:
    print('No')    

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d = map(int, input().split())
turn = 0
while a>0 and c>0:
    if not turn:
        c=c-b
        turn = 1
    else:
        a=a-d
        turn = 0

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

a,b,c,d = map(int, input().split())
turn = 0
while a>0 and c>0:
    if not turn:
        c=c-b
        turn = 1
    else:
        a=a-d
        turn = 0

if not turn:
    print("No")
else:
    print("Yes")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
MON = list(map(int,input().split()))

While True:
  
  MON[2] = MON[2] - MON[1]
  if(MON[2] <= 0):
    print("Yes")
    break

  MON[0] = MON[0] - MON[3]
  if (MON[0] <= 0 ):
    print("No")
    break
  

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,C,D = map(int,input().split())

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

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

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a = list(map(int,input().split()))
 
A = a[0]
B = a[1]
C = a[2]
D = a[3]
 
while B>0 and D>0:
  D = D - A
  if D <= 0:
    print("Yes")
    break
  B = B - C
  if B <= 0:
    print("No")
    break

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



a = list(map(int,input().split()))

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a, b, c, d = map(int, input().split())

aoki = c
takahashi = a

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

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 - b
      continue
  else: 
    print("Yes")
    break

Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
a, b, c, d = list(map(int, input().split()))
while True:
  c -= b
  if c <= 0:
    print('Yes')
    break
  a -= d
  if a <= 0:
    pinrt('No')
    break


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


Verdicts: Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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'

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

takahashi_hp = (a + d - 1) // d
aoki_hp = (b + c - 1) // c

if takahashi_hp >= aoki_hp:
    print('Yes')
else:
    print('No')


t_hp, t_ap, a_hp, a_ap = map(int,input().split())

while t_hp == 0 or a_hp == 0:
    a_hp -= t_ap
    if a_hp <= 0:
        return 'Yes'
        break

    t_hp -= a_ap
    if t_hp <= 0:
        return 'No'
        break

t_hp, t_ap, a_hp, a_ap = map(int,input().split())

while t_hp > 0 or a_hp > 0:
    a_hp -= t_ap
    if a_hp <= 0:
        return 'Yes'
        break

    t_hp -= a_ap
    if t_hp <= 0:
        return 'No'
        break

class monster:

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

        
def battle(player1, player2):
    for i in range(1 + player2.hp // player1.ap):
        attack(player1, player2)
        if player2.hp <= 0:
            return 'Yes'
        attack(player2, player1)
    return 'No'

def attack(attacker, receiver):
    receiver.hp -= attacker.ap

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

print(battle(takahashi, aoki))



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

takahashi_hp = a / d
aoki_hp = b / c

if takahashi_hp >= aoki_hp:
    print('Yes')
else:
    print('No')

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

takahashi_hp = a // d
aoki_hp = b // c

if takahashi_hp >= aoki_hp:
    print('Yes')
else:
    print('No')

t_hp, t_ap, a_hp, a_ap = map(int,input().split())

while t_hp > 0 or a_hp > 0:
    a_hp -= t_ap
    if a_hp <= 0:
        print('Yes')
        break

    t_hp -= a_ap
    if t_hp <= 0:
        print('No')
        break

Verdicts: Wrong Answer

Wrong Answer

Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d = map(int,input().split())
x=(c+b-1)/b
y=(a+d-1)/d
print(x,y)
if x<=y:
  print("Yes")
else:
  print("No")

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Accepted
Problem: 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`.

Submission attempts (in order):
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')

A, B, C, D = [int(i) for i in input().split()]
 
while A or C > 0:
  A -= D
  C -= B
 
if A > 0:
  print('Yes')
else:
  print('No')

A, B, C, D = [int(i) for i in input().split()]
 
a = A/D
b = C/B
 
if a >= 0:
  print('Yes')
else:
  print('No')

A, B, C, D = [int(i) for i in input().split()]
 
while A or C > 0:
  A -= D
  C -= B
 
if A >= C:
  print('Yes')
else:
  print('No')


A, B, C, D = [int(i) for i in input().split()]
 
while A or C > 0:
  C -= B
  if C<=0:
    print('Yes')
    break
  A -= D
  if A<= 0:
    print('No')
    break

 



Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Time Limit Exceeded

Accepted
Problem: 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`.

Submission attempts (in order):
import math
a, b, c, d = map(int, input().split())

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

print(taka, ao)
is_true = True
if taka < ao:
    is_true = True
elif taka > ao:
    is_true = False
else:
    if b > d:
        is_true = False

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



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


turn = 0

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


if turn % 2 != 0:
    print('Yes')
else:
    print('No')


Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d=(int(x) for x in input().split())
if (c+1)//b < (a+1)//d:
  print("No")
else:
  print("Yes")

a,b,c,d=[int(x) for x in input().split()]
print((c-1)//b , (a-1)//d)
if (c-1)//b > (a-1)//d:
  print("No")
else:
  print("Yes")

a,b,c,d=[int(x) for x in input().split()]
if (c-1)//b < (a-1)//d:
  print("No")
else:
  print("Yes")

a,b,c,d=[int(x) for x in input().split()]
if (c-1)//b > (a-1)//d:
  print("No")
else:
  print("Yes")

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
A,B,C,D=map(int,input().split())
flag=0
while A>0 or C>0:
  if flag==0:
    C-=B
    flag=1
  else:
    A-=D
    flag=0
if A<=0:
  print("Yes")
else:
  print("No")

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

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
h1, a1, h2, a2 = map(int,input().split())
x = h2 // a1
y = h1 // a2
print("Yes" if x >= y else "No")

import math
h1, a1, h2, a2 = map(int,input().split())
x = math.ceil(h2/a1)
y = math.ceil(h1/a2)
print("Yes" if x <= y else "No")

Verdicts: Wrong Answer

Accepted
Problem: 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`.

Submission attempts (in order):
a,b,c,d = map(int, input().split())
while True:
    a -= d
    if a <= 0:break
    c -= b
    if c <= 0:break
if a <= 0:
    print("Yes")
else:
    print("No")

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

Verdicts: Wrong Answer

Accepted