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 = list(map(int, input().split()))


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

from math import ceil

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

tak = ceil(C / B)
ao = ceil(A / D)

if tak <= ao:
  print("Yes")
else:
  print("No")

Verdicts: 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 sys
a,b,c,d = map(int,input().split())
t_1 = a//d
t_2 = a%d
a_1 = c//b
a_2 = c%b
print(t_1,t_2,a_1,a_2)
if t_1>a_1:
  print('No')
  sys.exit()
elif  t_1<a_1:
  print('Yes')
  sys.exit()
elif t_2 < a_2:
  print('No')
  sys.exit()
elif t_2 > a_2:
  print('Yes')
  sys.exit()
else:
  print('Yes')

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


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

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 -= 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: 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):
46 4 40 5

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

for i in range(1000):
    c = c - b
    if c <= 0:
        print('Yes')
        break
    a = 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())

if C % B == 0:
    takahashi_attack = C // B
else:
    takahashi_attack = C // B + 1

if A % D == 0:
    aoki_attack = A // D
else:
    aoki_attack = A // D + 1

print('takahashi:',takahashi_attack)
print('aoki:',aoki_attack)

if takahashi_attack > aoki_attack:
    print('No')
else:
    print('Yes')


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

if C % B == 0:
    takahashi_attack = C // B
else:
    takahashi_attack = C // B + 1

if A % D == 0:
    aoki_attack = A // D
else:
    aoki_attack = A // D + 1

if takahashi_attack > aoki_attack:
    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):
HT,ST,HA,SA = map(int,input().split())
if(HT>=HA or ST>=SA):
    print("Yes")
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):
def ceiling(a, b):
    return (a + b - 1) / a

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


def ceiling(a, b):
    return int((a + b - 1) / b)


a, b, c, d = map(int, input().split())
if(ceiling(c, b) <= ceiling(a, d)): 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):
#ABC164 B
p = [int(x) for x in input().split()]

takahashi_turn = True
while (p[0]<=0) or (p[2]<=0):
    if takahashi_turn:
        p[2] = p[2] - p[1]
    else:
        p[0] = p[0] - p[3]
    takahashi_turn = ! takahashi_turn

if p[0] > 0:
    print("Yes")
else:
    print("No")

#ABC164 B
p = [int(x) for x in input().split()]

takahashi_turn = True
while (p[0]<=0) or (p[2]<=0):
    if takahashi_turn:
        p[2] = p[2] - p[1]
    else:
        p[0] = p[0] - p[3]
    takahashi_turn = ! takahashi_turn

if p[0] > 0:
    print("Yes")
else:
    print("No")

#ABC164 B
p = [int(x) for x in input().split()]

takahashi_turn = True
while (p[0]>0) and (p[2]>0):
    if takahashi_turn:
        p[2] = p[2] - p[1]
    else:
        p[0] = p[0] - p[3]
    takahashi_turn = not takahashi_turn

if p[0] > 0:
    print("Yes")
else:
    print("No")

Verdicts: Runtime Error

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

is_tkhs = True
for _ in range(100000):
  if is_tkhs:
    C -= B
  else:
    A -= D
    
  is_tkhs *= -1
    
    
  if C <= 0 or A <= 0:
    break
      
print('No' if A <= 0 else 'Yes')

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

is_tkhs = True
for _ in range(100000):
  if is_tkhs:
    C -= B
  else:
    A -= D
    
  is_tkhs = not (is_tkhs)
    
  if C <= 0 or A <= 0:
    break
      
print('No' if A <= 0 else 'Yes')

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):
#!python3

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


def main():
    a = A // D if A % D == 0 else A // D + 1
    b = C // B if C % B == 0 else C // B + 1
    ans = "No" if a < b else "Yes"
    print(a, b)
    print(ans)
    

if __name__ == "__main__":
    main()


#!python3

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


def main():
    a = A // D if A % D == 0 else A // D + 1
    b = C // B if C % B == 0 else C // B + 1
    ans = "No" if a < b else "Yes"
    print(ans)
    

if __name__ == "__main__":
    main()


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

k = list(map(int,input().split()))
t = k[0] // k[3]
a = k[2] // k[1]
if t >= k:
  print("Yes")
else:
  print("No")

k = list(map(int,input().split()))
t = k[0]//k[3]
a = k[2]//k[1]
if t >= k:
  print("Yes")
else:
  print("No")

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

Verdicts: Wrong Answer

Runtime Error

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

HP_T=A
HP_A=C

for i in range(1,102):
    if i%2==1:
        HP_A -= B
    else:
        HP_T -= D

    if HP_A<=0:
        print('No')
        exit()
    elif HP_T<=0:
        print('Yes')
        exit()
    else:
        pass

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

HP_T=A
HP_A=C

for i in range(1,102):
    if i%2==1:
        HP_A -= B
    else:
        HP_T -= D

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

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

HP_T=A
HP_A=C

for i in range(1,1000):
    if i%2==1:
        HP_A -= B
    else:
        HP_T -= D

    if HP_A<=0:
        print('Yes')
        exit()
    elif HP_T<=0:
        print('No')
        exit()
    else:
        pass

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())
count1 = 0
count2 = 0

while c>0:
    c=c-b
    count1+=1
print(c,count1)

while  a>0:
    a=a-d
    count2+=1
print(a,count2)

if count1>count2:
    print('No')
else:
    print('Yes')

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

while c>0:
    c=c-b
    count1+=1

while  a>0:
    a=a-d
    count2+=1

if count1 < count2:
    print('No')
else:
    print('Yes')

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

while c>0:
    c=c-b
    count1+=1

while  a>0:
    a=a-d
    count2+=1

if count1>count2:
    print('No')
else:
    print('Yes')

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

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

a, b, c, d = map(int, input().split())
cntT = 0
cntA = 0
while c>0:
    cntT += 1
    c -= b
while a > 0:
    cntA += 1
    a -= d
if cntT <= cntA:
    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())
def func(a,b,c,d):
    numb=a/d
    numbs=c/b
    if type(numb)==int:
        pass
    if type(numb)==float:
        numb=a//d+1
    if type(numbs)==int:
        pass
    if type(numbs)==float:
        numbs=c//b+1
    return "Yes" if numbs<= numb else "No"
print(func(a,b,c,d))

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

a,b,c,d,=map(int,input().split())
def func(a,b,c,d):
    numb=a/d
    numbs=c/b
    if type(numb)==int:
        pass
    if type(numb)==float:
        numb=a//d+1
    if type(numbs)==int:
        pass
    if type(numbs)==float:
        numbs=c//b+1
    return "Yes" if numbs<= numb else "No"
print(func(a,b,c,d))

a,b,c,d,=map(int,input().split())
def func(a,b,c,d):
    numb=a/d
    numbs=c/b
    if type(numb)==int:
        pass
    if type(numb)==float:
        numb=(a//d)+1
    if type(numbs)==int:
        pass
    if type(numbs)==float:
        numbs=(c//b)+1
    return "Yes" if numbs<= numb else "No"
print(func(a,b,c,d))

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

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

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

cd = c // b +1

ad = a // d +1
if ad < cd :
    print('No')

elif  ad < cd:
    print('Yes')
else:
    print('Yes')

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

cb = math.ceil(c/d)

ad = math.ceil(a/d)
if ad < cb :
    print('No')

elif  ad < cb:
    print('Yes')
else:
    print('Yes')

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

cb = math.ceil(c//d)
ad = math.ceil(a//d)
if ad < cb :
    print('No')
else:
    print('Yes')

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

cb = c // b +1

ad = a // d +1
if ad < cb :
    print('No')

elif  ad < cb:
    print('Yes')
else:
    print('Yes')

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

while True:

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


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

cb = math.ceil(c/d)

ad = math.ceil(a/d)
if ad < cb :
    print('No')
else:
    print('Yes')

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

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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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)
count_T = (a-1)//b + 1
count_A = (c-1)//d + 1

if count_T <= count_A:
  print("Yes")
else:
  print("No")

a, b, c, d = map(int, input().split())
count_T = (c-1)//b + 1
count_A = (a-1)//d + 1

if count_T > count_A:
  print("Yes")
else:
  print("No")


a, b, c, d = map(int, input().split())
count_T = (a-1)//b + 1
count_A = (c-1)//d + 1

if count_T > count_A:
  print("Yes")
else:
  print("No")


a, b, c, d = map(int, input().split())
count_T = (c-1)//b + 1
count_A = (a-1)//d + 1

if count_T > count_A:
  print("No")
else:
  print("Yes")


Verdicts: Runtime Error

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 = (int(x) for x in input().split())

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

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

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

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

ans1 = 0
while a>=0:
    a -= d
    ans1 += 1

ans2 = 0
while c >= 0:
    c -= b
    ans2 += 1

if ans1 >= ans2:
    print("Yes")
else:
    print("No")

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

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

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


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

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

print('Yes') if takahashi_attacks <= aoki_attacks 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(True):
    if C-B <= 0:
        print("yes")
        break
    C -= B
    if A-D <= 0:
        print("no")
        break
    A -= D


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

# h, p
# A, B
# C, D

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


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):
f = True
while True:
    if f:
        C = C - B
        f = False
    else:
        A = A - D
        f = True
    if A <= 0:
        print('No')
        break
    elif C <= 0:
        print('Yes')
        break
    else:
        continue



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


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

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


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

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

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

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())
M = min([divmod(A,D)[0],divmod(C,B)[0]])
if divmod(C,B)==0:
    print("Yes")
elif divmod(A,D)==0:
    print("No")
else:
    C_1 = C-B*M
    A_1 = A-D*M
    if C_1 - B <= 0:
        print("Yes")
    else:
        print("No")


A,B,C,D=map(int,input().split())
Tattack=ceil(A/D)
Aattack=ceil(C/B)
if Tattack>=Aattack:
  print("Yes")
else:
  print("No")

import math
A,B,C,D=map(int,input().split())
Tattack=math.ceil(A/D)
Aattack=math.ceil(C/B)
if Tattack>=Aattack:
  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):

class Main:

    t1, a1, t2, a2= map(int,input().split());

    while(t1 <= t2 or t1 >= t2):
        if t2 <= 0:
            break;
        t2 -= a2;
        if t1 <= 0:
            break;
        t1 -= a1;
        
    if t1 >= t2:
        print("Yes");
    else:
        print("No")




class Main:
    t1, a1, t2, a2= map(int,input().split());

    while t1 >= 0 and t2 >= 0:
        if t2 <= 0:
            break;
        t2 = t2 - a1;
        if t1 <= 0:
            break;
        t1 =  t1 - a2;

    if t1 > t2:
        print("Yes");
    else:
        print("No")


class Main:

    t1, a1, t2, a2= map(int,input().split());

    while(t1 <= t2 or t1 >= t2):
        if t2 <= 0:
            break;
        t2 -= a1;
        if t1 <= 0:
            break;
        t1 -= a2;

    if t1 >= t2:
        print("Yes");
    else:
        print("No")




class Main:

    t1, a1, t2, a2= map(int,input().split());

    while t1 >= 0 and t2 >= 0:
        if t2 <= 0:
            break;
        t2 -= a1;
        if t1 <= 0:
            break;
        t1 -= a2;

    if t1 >= t2:
        print("Yes");
    else:
        print("No")




class Main:
    t1, a1, t2, a2= map(int,input().split());
    w = "t1"
    while t1 >= 0 or t2 >= 0:
        if t2 <= 0:
            w = "t1"
            break;
        t2 = t2 - a1;
        if t1 <= 0:
            w = "t2"
            break;
        t1 =  t1 - a2;

    if w == "t1":
        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):
TaHP,TaAP,AoHP,AoAP = map(int, input().split())

Flag_Ta = True

while( TaHP > 0 or AoHP > 0):
	print(TaHP)
	print(AoHP)
	if	Flag_Ta:
		AoHP = AoHP - TaAP
		Flag_Ta = False
	else:
		TaHP = TaHP - AoAP
		Flag_Ta = True
if TaHP > 0:
	print("Yes")
else:
    print("No")

TaHP,TaAP,AoHP,AoAP = map(int, input().split())

Flag_Ta = True
Flag_end = True
while Flag_end:
	if(TaHP <= 0 or AoHP <= 0):
  		break
	if	Flag_Ta:
		AoHP = AoHP - TaAP
		Flag_Ta = False
	else:
		TaHP = TaHP - AoAP
		Flag_Ta = True
if TaHP > 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())
x = a/d
y = c/b
if 1 <= x and 1 <= y:
    print('Yes')
else:
    print('Yes' if x <= y else 'No')


a,b,c,d=map(int,input().split())
for i in range(1000):
    if i%2 == 0:
        c = c-b
        if c <= 0:
            print('Yes')
            break
    else:
        a = 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):
def retm(a,b):
  if a%b>0:
    return 1
  else:
    return 0

ta,th,aa,ah=map(int,input().split())
if int(ah/ta)+retm(ah,ta)<=int(th/aa)+retm(th,aa):
  print("Yes")
else:
  print("No")

def retm(a,b):
  if a%b>0:
    return 1
  else:
    return 0

th,ta,ah,aa=map(int,input().split())
if int(ah/ta)+retm(ah,ta)<=int(th/aa)+retm(th,aa):
  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):
mport math
a,b,c,d = map(int,input().split(" "))
taka = math.ceil(c/b)
aoki = math.ceil(a/d)

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

import math
a,b,c,d = map(int,input().split(" "))
taka = math.ceil(c/b)
aoki = math.ceil(a/d)

if taka <= aoki:
    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())

ans = 'Yes'
while True:
    
    D -= A
    if D <= 0:
        break

    
    B -= C
    if B <= 0:
        ans = 'No'
        break

print(ans)


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

ans = 'Yes'
while True:
    
    C -= B
    if C <= 0:
        break

    
    A -= D
    if A <= 0:
        ans = 'No'
        break

print(ans)


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):
F = list(map(int,input().split()))

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

count = 0
while(1):
    if count%2==0:
        C -= B
    else:
        A -= D
    
    count += 1
    if C<=0 and A<=0:
        if C <= 0:
            print('Yes')
            break
        else:
            print('No')
            break



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

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

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

while 1:
    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 1:
    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())

takahashi_count = (int)(C/B)
aoki_count = (int)(A/D)

if C % B != 0 :
  takahashi_count += 1
if A % D != 0:
  aoki_count += 1

if takahashi_count >= aoki_count:
  print("Yes")
else:
  print("No") 

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

takahashi_count = (int)(C/B)
aoki_count = (int)(A/D)

if C % B != 0 :
  takahashi_count += 1
if A % D != 0:
  aoki_count += 1

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

a, b, c, d = map(int, input().split())
if c% b == 0:
    aoMake = (c//b)*2-1
else:
    aoMake = ((c//b)+1)*2-1

if a%d == 0:
    takaMake = (a//d)*2
else:
    takaMake = ((a//d)+1)*2

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



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

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

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
y=a//d

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


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

x=-(-c//b)
y=-(-a//d)

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


Verdicts: Wrong Answer

Accepted