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

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

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

Verdicts: Runtime Error

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())
print(a, b, c, d)

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())
print(a, b, c, d)

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

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

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

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

a, b, c, d = map(int, input().split())
while (a >0 or c >0):
    c = c - b
    if (c < 1):
        break
    a = a - d
    if (a < 1):
        break
print('Yes' if (c < 1 ) else '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 = [int(s) for s in input().split()]
turn = 0
while True:
  if A <= 0 and C > 0:
    print("No")
  elif A > 0 and C <= 0:
  	print("Yes")
  
  if turn == 0:
    A -= D
    turn = 1
  else:
    C -= B
    turn = 0

A, B, C, D = [int(s) for s in input().split()]
turn = 0
while A > 0 and C > 0:
  if turn == 0:
    C -= B
    turn = 1
  else:
    A -= D
  	turn = 0
if A > 0:
  print("Yes")
else:
  print("No")

A, B, C, D = [int(s) for s in input().split()]
turn = 0
while A > 0 and C > 0:
  if turn == 0:
    C -= B
    turn = 1
  else:
    A -= D
    turn = 0
if A > 0:
  print("Yes")
else:
  print("No")

Verdicts: Time Limit Exceeded

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):
n = input().split(" ")
a = int(n[0])
b = int(n[1])
c = int(n[2])
d = int(n[3])
for i in range(100):
    c += -b
    if c <= 0:
        print("Yes")
        break
    a += -d
    if d <= 0:
        print("No")
        break

n = input().split(" ")
a = int(n[0])
b = int(n[1])
c = int(n[2])
d = int(n[3])
for i in range(100):
    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):
import sys
A,B,C,D = list(map(int,input().split()))

while True:
  C = C - B
  A -= D
  print(C)
  print(A)
  if C <= 0:
    print("Yes")
    sys.exit(1)
  elif A <= 0:
    print("No")
    sys.exit(1)

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

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


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


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

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


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

while True:
    C -= B
    if C<=0:
        print("Yes")
        break
    else:
        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):
th, ts, ah,as  = map(int, input().spilt())
turn = 1
#1 represent takashi monster turn

while(1):
  if(turn):
    ah-=ts
    if(ah<=0):
      print("No")
      break
  else:
    th-=as
    if(th<=0):
      print("Yes")
      break
  turn^=1
 

th, tMon, ah, aMon  = map(int, input().split())
turn = 1
#1 represent takashi monster turn

while(1):
  if(turn):
    ah-=tMon
    if(ah<=0):
      print("Yes")
      break
  else:
    th-=aMon
    if(th<=0):
      print("No")
      break
  turn^=1

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):
hT, sT, hA, sA = map(int, input().split())
win = ''
while True:
    hA = hA-sT
    if hA <= 0:
        win = 'yes'
        break
    hT = hT - sA
    if hT <= 0:
        win = 'no'
        break
print(win)

hT, sT, hA, sA = map(int, input().split())
win = ''
while True:
    hA = hA-sT
    if hA <= 0:
        win = 'Yes'
        break
    hT = hT - sA
    if hT <= 0:
        win = 'No'
        break
print(win)

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 == 0:
  x = c//b
else:
  x = c//b+1
if d%a == 0:
  y = d//a
else:
  y = d//a+1
if x == y:
  print("Yes")
elif x > y:
  print("Yes")
else:
  print("No")

a,b,c,d = map(int,input().split())
for i in range(10**3):
  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):
print(C/B)
print(A/D)
if (math.ceil(C/B)-math.ceil(A/D))<1:
    print("Yes")
else:
    print("No")

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

if (math.ceil(C/B)-math.ceil(A/D))<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):
import math
a, b, c, d = map(int, input().split())
if math.ceil(a / d) <= math.ceil(c / b) : print("Yes")
else: print("No")

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

import math
a, b, c, d = map(int, input().split())
if  math.ceil(c / b) <= math.ceil(a / d) : 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):
class monster:
    stamina = 0
    attack= 0
    def __init__(self,stamina,attack):
        self.stamina = stamina
        self.attack = attack


abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]



taka = monster(a,b)
aoki = monster(c,d)

while(1):
    aoki.stamina = aoki.stamina-taka.attack
    taka.stamina = taka.stamina-aoki.attack
    if taka.stamina<0 :
        print('YES')
        break
    elif aoki.stamina<0:
        print('NO')
        break
    else:
        pass

class monster:
    stamina = 0
    attack= 0
    def __init__(self,stamina,attack):
        self.stamina = stamina
        self.attack = attack


abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]



taka = monster(a,b)
aoki = monster(c,d)

while(1):
    aoki.stamina = aoki.stamina-taka.attack
    taka.stamina = taka.stamina-aoki.attack
    if taka.stamina<0 :
        print('Yes')
        break
    elif aoki.stamina<0:
        print('No')
        break
    else:
        pass

      

class monster:
    stamina = 0
    attack= 0
    def __init__(self,stamina,attack):
        self.stamina = stamina
        self.attack = attack


abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]



taka = monster(a,b)
aoki = monster(c,d)

while(1):
    aoki.stamina = aoki.stamina-taka.attack
    if aoki.stamina<=0:
        print('No')
        break
    taka.stamina = taka.stamina-aoki.attack
    if taka.stamina<=0 :
        print('Yes')
        break

class monster:
    stamina = 0
    attack= 0
    def __init__(self,stamina,attack):
        self.stamina = stamina
        self.attack = attack


abcd = input().split()
abcd=[int(x) for x in abcd]
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]



taka = monster(a,b)
aoki = monster(c,d)

while(1):
    
    aoki.stamina = aoki.stamina-taka.attack
    if aoki.stamina<=0:
        print('Yes')
        break
    taka.stamina = taka.stamina-aoki.attack
    if taka.stamina<=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())
print("Yes" if a/d<=c/b else "No")

a,b,c,d=map(int,input().split())
print('Yes' if (a+d-1)//d >= (c+b-1)//b 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):
th,ta,ah,aa = map(int,input().split())
cnt_t = 0
cnt_a = 0

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

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

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

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

for i in range(100):
    ah = ah - ta
    if ah <= 0:
        print("Yes")
        break
    else:
        th = th - aa
        if th <= 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(" "))
i = 0
while a > 0 or c > 0:
  if i%2 == 0:
    c -= b
    else:
      a -= d
  i += 1
print("YNeos"[i%2::2])

a, b, c, d = map(int, input().split(" "))
i = 0
while a > 0 or c > 0:
  if i%2 == 0:
    c -= b
  else:
    a -= d
    i += 1
print("YNeos"[i%2::2])

import sys
from math import sqrt, gcd, ceil, log
from bisect import bisect
from collections import defaultdict
inp = sys.stdin.readline
read = lambda: list(map(int, inp().strip().split()))





def solve():
	a, b, c, d = map(int, input().split(" "))
	i = 0
	while a > 0 or c > 0:
		if i%2 == 0:
			c -= b
		else:
			a -= d
		i += 1
	print("YNeos"[i%2::2])



if __name__ == "__main__":
	solve()

Verdicts: Runtime Error

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

a, b, c, d = map(int, input().split())
while a > 0 and c > 0:
  c -= b
  a -= d
  
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):
import math
A,B,C,D = map(int,input().split())
print("Yes" if math.ceil(C/B) >= math.ceil(A/D) else "No")

import math
A,B,C,D = map(int,input().split())
print("Yes" if math.ceil(C/B) <= math.ceil(A/D) 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 = input().split(" ")
count = 0
while (count!=0):
  C = int(C) - int(B)
  if int(C)<=0: 
    print(Yes)
    count = count + 1
  else: 
    continue
  A = int(A) - int(D)
  if int(A)<=0: 
    print(No)
    count = count + 1
  else: 
    continue

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

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

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 fight(a,b):
    if b%a==0:
        return b//a
    else:
        return (b//a)+1
A,B,C,D=map(int,input().split())
if fight(A,C)>=fight(B,D):
    print("No")
else:
    print("Yes")


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


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

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

a, b, c, d = map(int,input().split())
while a >= 0 or c >= 0:
    c -= b
    a -= d

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

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

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

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

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

if c % d == 0:
    f = c / b
else:
    f = a / d + 1
    
if e > f:
    print("Yes")
elif e == f:
    print("Yes")
else:
    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: 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())
count = 0

while True:
    if(count % 2 == 0):
        C = C - B
        count = count + 1
    else:
        A = A - D
        count = count + 1
    print(C, A)
    if (A <= 0):
        print("No")
        break

    elif(C <= 0):
        print("Yes")
        break


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

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

    elif(C <= 0):
        print("Yes")
        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 A>0 and C>0:
  C-=B
  if C <= 0:
    print("Yes")
  else:
    A-=D
    if A <= 0:
      print("No")


A,B,C,D = map(int,input().split())
while A > 0 and C > 0:
    C -= B
    if C <= 0:
        print("Yes")
    else:
        A -= D
        if A <= 0:
            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_hp,a_at,b_hp,b_at = map(int,input().split())
n = b_hp//a_at
m = a_hp//b_at
if n<=m+1:
    print('Yes')
else:
    print('No')


a_hp,a_at,b_hp,b_at = map(int,input().split())
An = b_hp//a_at
Blit = b_hp%a_at
Bn = a_hp//b_at
Alit = a_hp%b_at
if Blit != 0:
    An += 1
if Alit != 0:
    Bn += 1
print('Yes' if An<=Bn 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())
cb = c // b
ad = a // d
print('No' if (cb < ad)  else 'Yes')

import math
a,b,c,d = map(int, input().split())
cb = math.ceil(c / b)
ad = math.ceil(a / d)
print('Yes' if (cb <= ad)  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())

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

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

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

jumyo_t = A//D
jumyo_a = C//B
if A%D != 0:
    jumyo_t += 1
if C%B != 0:
    jumyo_a += 1

if jumyo_a > jumyo_t:
    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())
a=A//D
b=C//B
if a>b:
  print('Yes')
  
if a==b:
  if A%D==0:
    print('No')
  else:
    print('Yes')
    
if a==b-1:
  if C%B==0:
    print('Yes')
  else:
    print('No')
    
else:
  print('No')

A,B,C,D=map(int,input().split())
a=A//D
b=C//B
if a>b:
  print('Yes')
  
if a==b:
  if A%D==0 and C%B!=0:
    print('No')
  else:
    print('Yes')
    
if a==b-1:
  if C%B==0 and A%D!=0:
    print('Yes')
  else:
    print('No')
    
if a<b-1:
  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):
li=[input() for i in range(4)]

while ((li[0]>0) and (li[2]>0)):
  li[2]=li[2]-li[1]
   if li[2]<=0:
      print('Yes')
  li[0]=li[0]-li[3]
   if li[0]<=0:
      print('No')


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

A=li[0]
B=li[1]
C=li[2]
D=li[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: 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 > 0 and c > 0:
  c =- b
  a =- d

if a <= 0:
  print('No')
if c <= 0:
  print('Yes')
  


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

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


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

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

else:
    print('No')

from math import inf
A,B,C,D = map(int, input().split())
for i in range(inf):
    if i % 2 == 0:
        D -= A
        if D == 0:
            print('Yes')
            break
    else:
        B -= C
        if B == 0:
            print('No')
            break

from math import ceil
A,B,C,D = list(map(int, input().split()))
E = ceil(A/C)
F = ceil(D/B)
if F >= E:
    print('Yes')

else:
    print('No')

from math import ceil
A,B,C,D = list(map(int, input().split()))
E = ceil(A//C)
F = ceil(D//B)
if F >= E:
    print('Yes')

else:
    print('No')

A,B,C,D = map(int, input().split())
count = 0
for i in range(999999999999999999999999):
    if i % 2 == 0:
        D -= A
        if D == 0:
            print('Yes')
            break
    else:
        B -= C
        if B == 0:
            print('No')
            break

from math import inf
A,B,C,D = map(int, input().split())
count = 0
while True:
    if count % 2 == 0:
        D -= A
        if D == 0:
            print('Yes')
            break
    else:
        B -= C
        if B == 0:
            print('No')
            break
    count += 1

from math import ceil
A,B,C,D = list(map(int, input().split()))
E = ceil(A/C)
F = ceil(B/D)
if E >= F:
    print('Yes')

else:
    print('No')

from math import ceil

h_t, s_t, h_a, s_a = map(int, input().split())

count_t = ceil(h_t/s_a)
count_a = ceil(h_a/s_t)

print('Yes' if count_t >= count_a else 'No')

Verdicts: Wrong Answer

Runtime Error

Wrong Answer

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

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

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

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

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):
S,W=map(int,input().split())
if S<=W:
    print("unsafe")
else:
    print("safe")

a=list(map(int,input().split()))
takahashi=0
takahashicount=0
aoki=0
aokicount=0

for i in range(a[2]):
    aoki+=a[1]
    if (a[2]-aoki)>0:
        aokicount+=1
    elif (a[2]-aoki)==0:
        break
    else:
        break
        
for i in range(a[0]):
    takahashi+=a[3]
    if (a[0]-takahashi)>0:
        takahashicount+=1
    elif (a[0]-takahashi)==0:
        break
    else:
        break
if takahashicount==aokicount:
    print("Yes")
elif takahashicount>aokicount:
    print("Yes")
elif takahashicount<aokicount:
    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):
# 164








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

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

if C <= 0:
    print("YES")
else:
    print("NO")



# 164








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

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

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):
A,B,C,D=map(int,input().split())
while if A>0 and C>0:
    A-=D
    C-=B
if C>0:
    print('No')
else:
    print('Yes')

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

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

print("no")

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

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

print("no")


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

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

print("No")


Verdicts: Runtime Error

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

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

health1, strength1, health2, strength2 = map(int, input().split())
while health1 > 0 and health2 > 0:
    health2 -= strength1
    if health2 <= 0:
        print("Yes")
        break
    health1 -= strength2
    if health1 <= 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):
a,b,c,d = map(int, input().split(' '))

t = a / d + 1
a = c / b

if a >= t:
  print("No")
else:
  print("Yes")

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

t,tmod = divmod(a, d)
a,amod = divmod(c , b)

if tmod >0:
  t = t+1
if amod >0:
  a = a+1

if a > t:
  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())

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

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

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

#print(a,b,c,d)
isWin = True

while(True):
    c -= b
    if(c <= 0):
        break
    a -= d
    if(a <= 0):
        isWin = False
        break
    

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

Verdicts: Wrong Answer

Accepted