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):
# -*- coding: utf-8 -*-

S, W = map(int, input().split())

#s = input()
#print(s[0:K-1]+s[K-1].lower()+s[K:N])

if S <= W:
    print("unsafe")
else:
    print("safe")


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

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

#s = input()
#print(s[0:K-1]+s[K-1].lower()+s[K:N])

while(1):
    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())
print('YNeos'[a//d<c//b::2])

a,b,c,d=map(int,input().split())
print('YNeos'[~-a//d<~-c//b::2])

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()
a = int(a)
b = int(b)
c = int(c)
d = int(d)

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

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

a_hp = a
b_hp = c

result = ""
while True :
	b_hp -= b
	if b_hp <= 0 :
		result ="Yes"
		break
		
	a_hp -= d
	if a_hp <= 0 :
		result = "No"
		break
print(result)

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

for _ in range(10000):
  C -= B
  if C <= 0:
    print("Yes")
    exit()

  A -= D
  if A <= 0:
    print("No")
    exit()


A, B, C, D = map(int, input().split())
for _ in range(10000):
  C -= B
  if C <= 0:
    print("Yes")
    exit()
  A -= D
  if A <= 0:
    print("No")
    exit()

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

for _ in range(10000):
  C -= B
  if C <= 0:
    print("Yes")
    exit()

  A -= D
  if A <= 0:
    print("No")
    exit()


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

for _ in range(10000):
  C -= B
  if C <= 0:
    print("Yes")
    exit()

  A -= D
  if A <= 0:
    print("No")
    exit()


Verdicts: Runtime Error

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

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


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

takahashi = a // d
aoki = c // b

if a%d != 0 :
    takahashi += 1
else :
    takahashi += 0

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

if takahashi >= aoki :
    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 <= C / B:
    print("Yes")
else:
    print("No")

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

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

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]=list(map(int,input().split()))
ans="No"
chokudai=c//b
if c%b!=0:
    chokudai+=1
aoki=a//d
if a%b!=0:
    aoki+=1
if chokudai>=aoki:
    ans="Yes"
print(ans)

[a,b,c,d]=list(map(int,input().split()))
ans="No"
chokudai=c//b
if c%b!=0:
    chokudai+=1
aoki=a//d
if a%d!=0:
    aoki+=1
if chokudai<=aoki:
    ans="Yes"
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):
x = input().split()
a = int(x[0])
b = int(x[1])
c = int(x[2])
d = int(x[3])

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


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

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


Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

Submission attempts (in order):
a = list(map(int,input().split()))
if -(a[0]//a[3]) >= -(a[2]//a[1]):
    print("Yes")
else:
    print("No")

a = list(map(int,input().split()))
if -(-a[0]//a[3]) >= -(-a[2]//a[1]):
    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 True:
    c -= b
    print(c)
    if c <= 0:
        break
    a -= d
    print(a)
    if a <= 0:
        break
    


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


Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

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

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

a, b, c, d = map(int, input().split())
aoki = c
taka = a
for i in range(max((c // b)+1, (a // d)+1)):
    aoki -= b
    taka -= d
    if aoki <= 0:
        print("Yes")
        break
    elif taka <=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("Yes" if a > 0 else "No")

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

Submission attempts (in order):
import sys
a,b,c,d=map(int,input().split())
t = a / d
ao = c / b
if (t < ao):
    print('Yes')
elif (t == ao):
    print('Yes')
else:
    print('No')

import sys
import math
a,b,c,d=map(int,input().split())
t = math.ceil(a / d)
ao = math.ceil(c / b)
if (t < ao):
    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):
ok=True
i=0
a,b,c,d=map(int,input().split())
k=c//b
c-=bk
a-=d(k)
if(a<=0 and c!=0):
    print("No")
else:
    print("Yes")

ok=True
i=0
a,b,c,d=map(int,input().split())
k=c//b
c-=b*k
a-=d*(k)
if(a<=0 and 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):
def io():
    return map(int,input().split())
def op():
    return list(map(int,input().split()))
a,b,c,d=io()
while 1:
    c=c-b
    if c<=0:
        print('yes')
        break
    a-=d
    if  a<=0:
        print('no')
        break

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

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

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

print(ans)

##print("Yes" if   -(-d//a) <=-(-b//c)  else "No")

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

print(ans)

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

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

Verdicts: Wrong Answer

Time Limit Exceeded

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

TAKA = 0
AOKI = 1
PH = 0
PW = 1

user = [[arr[0], arr[1]], [arr[2], arr[3]]]

taka = user[TAKA]
aoki = user[AOKI]
uid = TAKA

while (taka[PH] > 0 and aoki[PH] > 0):
  user[(uid + 1) % 2][PH] -= user[uid][PW]
  print(user)
  uid = (uid + 1) % 2

  
result = 'No' if taka[PH] <= 0 else 'Yes'

arr = list(map(int, input().split()))
 
TAKA = 0
AOKI = 1
PH = 0
PW = 1
 
user = [[arr[0], arr[1]], [arr[2], arr[3]]]
 
taka = user[TAKA]
aoki = user[AOKI]
uid = TAKA
 
while (taka[PH] > 0 and aoki[PH] > 0):
  user[(uid + 1) % 2][PH] -= user[uid][PW]
  uid = (uid + 1) % 2
 
  
result = 'No' if taka[PH] <= 0 else 'Yes'
print(result)

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(" "))
tao = a // d 
ttk = c // b 

if a%d == 0:
    tao -=1

if c%b == 0:
    ttk -=1

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

a,b,c,d = map(int, input().split(" "))
ta = a // d
tc = c // b

if ta <= tc:
    print("Yes")
else:
    print("No")

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

if a%d == 0:
    tao -=1

if c%b == 0:
    ttk -=1


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

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 =input().split()
while(1):
    C = int(C)-int(B)
    if(int(C) <= 0):
        print("yes")
        break
    A = int(A)-int(D)
    if(int(A) <= 0):
        print("no")
        break


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

a,b,c,d = map(int,input().split())
while True:
    a -=d
    c -=b
    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 = list(map(int, input().split()))
if A[0]//A[3] >= A[2]//A[1]:
    print("Yes")
else :
    print("No") 

import math
A = list(map(int, input().split()))
if math.ceil(A[0]/A[3]) >= math.ceil(A[2]/A[1]):
    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())
print("Yes" if C//B <= A//D else "No")

A,B,C,D = map(int, input())
print("Yes" if C//B <= A//D else "No")

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

#B
import sys
a, b, c, d = map(int, input().split())
for i in range(100):
    c -= b
    if c <= 0:
        print('Yes')
        break
    else:
        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 = int(input().split())

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






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

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






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

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

def main():

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

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

if __name__ == '__main__':
    main()

Verdicts: Runtime Error

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())
i = 0
while A > 0 and C > 0:
    if i % 2 == 0: C -= B
    else: A -= D
print('Yes' if A > 0 else 'No')

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

Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

Submission attempts (in order):
A,B,C,D=map(int,input().split())
for i in range(0,99):
    C=C-B
    if C<=0:
        print('Yes')
        break
    else:
        A=A-D
        if A<=0:
            print('No')
            


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


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


A,B,C,D=map(int,input().split())
for i in range(0,99):
    C=C-B
    if C<=0:
        print('Yes')
    else:
        A=A-D
        if A<=0:
            print('No')

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


Verdicts: Wrong Answer

Runtime Error

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):
try:
  a,b,c,d=[int(x) for x in input().split()]
  while(a<=0 or c<=0):
    c=c-b
    a=a-d
    
  if(a<=0):
    print("No")
    
  else:
    print("Yes")
    
except:
  pass
  

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


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):
buf = input().split()
th = int(buf[0])
ts = int(buf[1])
ah = int(buf[2])
as = int(buf[3])

while True:
  ah -= ts
  if ah <= 0:
    break
  th -= as
  if th <= 0:
    break

if ah <= 0:
  print('Yes')
if th <= 0:
  print('No')

buf = input().split()
th = int(buf[0])
ts = int(buf[1])
ah = int(buf[2])
ass = int(buf[3])

while True:
  ah -= ts
  if ah <= 0:
    break
  th -= ass
  if th <= 0:
    break

if ah <= 0:
  print('Yes')
if th <= 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,b,c,d = map(int,input().split(" "))
while True:
  c -= b
  if c <= 0:
    print("yes")
    exit()
  a -= d
  if a <= 0:
    print("yes")
    exit()


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

power = list(map(int, input().split()))
t = 100
a = 100
for p in power:
  if p%2 == 0:
    a -= p
    if a <=0:
      print("Yes")
  else:
    t -= p
    if t <= 0:
      print("No")

t, ta, a, aa = list(map(int, input().split()))
while(True):
  a -= ta
  if a <= 0:
    print("Yes")
    break
  t -= aa
  if t <= 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 = (int(x) for x in input().split())

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

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

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


import math
A, B, C, D = map(int, input().split())
a = math.ceil(C / B)
c = math.ceil(A / D)
if a <= c:
    print("Yes")
else:
    print("No")


Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

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


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

import math
a, b, c, d = map(int, input().split())
if(math.ceil(a/d)>=math.ceil(c/b)):
    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(' '))
takahashi_dead_count = int(A / D) + 1
aoki_dead_count = int(C / B) + 1

if takahashi_dead_count >= aoki_dead_count:
    print('Yes')
else:
    print('No')

takahashi_hp, takahashi_power, aoki_hp, aoki_power = map(int, input().split(' '))
takahashi_attack_count = int(aoki_hp / takahashi_power)
if aoki_hp % takahashi_power != 0:
    takahashi_attack_count += 1
aoki_attack_count = int(takahashi_hp / aoki_power)
if takahashi_hp % aoki_power != 0:
    aoki_attack_count += 1

if takahashi_attack_count <= aoki_attack_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 = int(input())
B = int(input())
C = int(input())
D = int(input())
while (A>0 and C>0):
    C = C - B
    if C <= 0:
        break
    A = A - D
print("Yes" if C<=0 else "NO")

A = int(input())
B = int(input())
C = int(input())
D = int(input())
while (A>0 and C>0):
    C = C - B
    if C <= 0:
        break
    A = A - D
print("Yes" if C<=0 else "NO")

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

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

Verdicts: Runtime Error

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

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+1
else:
    x=c//b

if a%d>0:
    y=a//d+1
else:
    y=a//d
print(x,y)
print('Yes' if x<=y else 'No')

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

if c%b>0:
    x=c//b+1
else:
    x=c//b

if a%d>0:
    y=a//d+1
else:
    y=a//d
print('Yes' if x<=y else 'No')

Verdicts: Wrong Answer

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

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

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

a,b,c,d = map(int, 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 = 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

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

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

if (a - 1) // d + 1 >= (c - 1) // b + 1 :
    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):
As,Aa,Bs,Ba = map(int,input().split())
Na = Bs//Aa
Nb = As//Ba

if Na <= Nb:
  print('Yes')
else:
  print('No')

As,Aa,Bs,Ba = map(int,input().split())
while Aa > 0 and Ba > 0:
  Bs += -Aa
  As += -Ba

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

import math

As,Aa,Bs,Ba = map(int,input().split())
Na = math.ceil(Bs/Aa)
Nb = math.ceil(As/Ba)
 
if Na <= Nb:
  print('Yes')
else:
  print('No')

Verdicts: Wrong Answer

Time Limit Exceeded

Accepted
Problem: Takahashi and Aoki will have a battle using their monsters.  The health and strength of Takahashi's monster are A and B, respectively, and those of Aoki's monster are C and D, respectively.  The two monsters will take turns attacking, in the order Takahashi's, Aoki's, Takahashi's, Aoki's, ... Here, an attack decreases the opponent's health by the value equal to the attacker's strength. The monsters keep attacking until the health of one monster becomes 0 or below. The person with the monster whose health becomes 0 or below loses, and the other person wins.  If Takahashi will win, print `Yes`; if he will lose, print `No`.

Submission attempts (in order):
ABCD=input()
ABCD=ABCD.split()
A=int(ABCD[0])
B=int(ABCD[1])
C=int(ABCD[2])
D=int(ABCD[3])
while(1):
    C=C-B
    if(C<=0):
        print('No')
        break
    A=A-D
    if(A<=0):
        print('Yes')
        break



ABCD=input()
ABCD=ABCD.split()
A=int(ABCD[0])
B=int(ABCD[1])
C=int(ABCD[2])
D=int(ABCD[3])
while(1):
    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):
import sys, math
input = sys.stdin.readline

def main():
    A, B, C, D = map(int, input().split())
    t = math.ceil(A / D)
    a = math.ceil(B / C)

    if t < a:
        print("No")
    else:
        print("Yes")

if __name__ == '__main__':
    main()

import sys, math
input = sys.stdin.readline

def main():
    A, B, C, D = map(int, input().split())
    t = math.ceil(C / B)
    a = math.ceil(A / D)

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

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


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


Verdicts: Wrong Answer

Accepted