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


import math
a,b,c,d=map(int, input().split())
N=math.ceil(c/b)
print(["No","Yes"][a-(N-1)*d>0])

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

inputLine=input()
A=int(inputLine.split(" ")[0])
B=int(inputLine.split(" ")[1])
C=int(inputLine.split(" ")[2])
D=int(inputLine.split(" ")[3])

while True:
    C = C - B
    if C >= 0:
        print("Yes")
        sys.exit()

    A = A - D
    if A >= 0:
        print("No")
        sys.exit()




import sys

inputLine=input()
A=int(inputLine.split(" ")[0])
B=int(inputLine.split(" ")[1])
C=int(inputLine.split(" ")[2])
D=int(inputLine.split(" ")[3])

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

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




Verdicts: Wrong Answer

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

Submission attempts (in order):
A,B,C,D = map(int,input().split())
while True:
  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:
  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())
while True:
    c = c - b
    a = a - d
    if c <= 0:
        print('No')
        break
    elif a <= 0:
        print('Yes')
        break
    else:
        pass

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

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

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
import math
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)

if t_n-1 <= a_n:
    print('YES')
else:
    print('NO')

if t_n <= a_n:
    print('YES')
else:
    print('NO')

import math
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)

if t_n <= a_n:
    print('YES')
else:
    print('NO')

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

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

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

import math
a,b,c,d = map(int,input().split())
#a c hp
#b d atk
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)

if t_n <= a_n:
    print('YES')
else:
    print('NO')

import math
a,b,c,d = map(int,input().split())
t_n = math.ceil(c / b)
a_n = math.ceil(a / d)

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

a, b, c, d = map(int, input().split())
while a > 0 and c > 0:
  c -= b
  if c <= 0:
    break
  a -= d
  
if a < c:
  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):
import math

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

A = int(A)
B = int(B)
C = int(C)
D = int(D)

E = math.ceil(C/A)
F = math.ceil(D/B)

if E <= F:
    print('Yes')
else:
    print('No')

import math

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

A = int(A)
B = int(B)
C = int(C)
D = int(D)

E = math.ceil(C/A)
F = math.ceil(D/B)

if E <= F:
    print('Yes',"")
else:
    print('No',"")

import math

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

A = int(A)  
B = int(B)  
C = int(C)  
D = int(D)  

E = math.ceil(C/B)  
F = math.ceil(A/D)  

if E <= F:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

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

Submission attempts (in order):
a,b,c,d = map(int,input(),split())
turn = 0
while a > 0 and c> 0:
    if turn%2 ==0:
        c -= b
    else:
        a -= d
    turn += 1
if turn%2 == 1:
    print('Yes')
else:
    print('No')   

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

Verdicts: Runtime Error

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

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


a,b,c,d = list(map(int,input().split()))
na = c-b
nb = a-d
while na > 0 and nb > 0:
    na -= c
    nb -= d
if na <=0:
    print("Yes")
else:
    print("NO")


a,b,c,d = list(map(int,input().split()))
y = (c+b-1)//b
x = (a+d-1)//d
if x >= y:
    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):
t, k, c, d = (int(x) for x in input().split())
while (t >= 0 or c >= 0):
  c = c - k
  if c <= 0:
    print("Yes")
    break
  t = t - d
  if a <= 0:
    print("No")
    break

t, k, c, d = [int(x) for x in input().split()]
while (t >= 0 or c >= 0):
  c = c - k
  if c <= 0:
    print("Yes")
    break
  t = t - d
  if a <= 0:
    print("No")
    break

t, k, c, d = (int(x) for x in input().split())
while (t >= 0 or c >= 0):
  c = c - k
  if c <= 0:
    print("Yes")
    break
  t = t - d
  if t <= 0:
    print("No")
    break

Verdicts: Runtime Error

Runtime Error

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

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

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

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: 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):
in1=input()
in2=in1.split()
a=int(in2[0])
b=int(in2[1])
c=int(in2[2])
d=int(in2[3])
taka=a//d
ao=c//b
if taka<ao:
  print("No")
else:
  print("Yes")

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

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

Verdicts: Wrong Answer

Wrong Answer

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

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



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

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


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


Verdicts: Time Limit Exceeded

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())
flg = True
for i in range(2 * max(A, C) + 1):
    if i % 2 == 0:
        C -= B
        print('C: ', C)
        if C <= 0:
            flg = False
            print('Yes')
    else:
        A -= D
        if A <= 0:
            flg = False
            print('No')
    if not flg:
        break


A, B, C, D = map(int, input().split())
flg = True
for i in range(2 * max(A, C) + 1):
    if i % 2 == 0:
        C -= B
        if C <= 0:
            flg = False
            print('Yes')
    else:
        A -= D
        if A <= 0:
            flg = False
            print('No')
    if not flg:
        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):
num = list(map(int, input().split())) 

N=num[2]/num[1]
if((N-1)*num[3]<num[0]):
    print("Yes")
else:
    print("No")


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

N=num[2]/num[1]

if(N==int(N)):
    N=int(N)-1
else:
    N=int(N)

if(N*num[3]<num[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())
print(["No","Yes"][a//d + (a%d > 0) >= b//c + (b%c > 0)])

a,b,c,d = map(int, input().split())
print(["No","Yes"][a//d + (a%d > 0) >= c//b + (c%b > 0)])

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


if __name__ == "__main__":
    a,b,c,d=map(int,input().strip().split())
    jishu1=0
    jishu2=0
    while True:
        a=a-d
        jishu1+=1
        if a<=0:
            break
    while True:
        c=c-b
        jishu2+=1
        if c<=0:
            break
    if jishu1<jishu2:
        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("Yes") if D//A + 1 <= C//B + 1 else print("No")

A, B, C, D = map(int, input().split())
turnsT = A//D + 1
turnsA = C//B + 1
print("Yes") if turnsT >= turnsA 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

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

t = math.ceil(c/b)
o = math.ceil(a/d)

print(t,o)

if t <= o:
    print('Yes')
else:
    print('No')

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

t = math.ceil(c/b)
o = math.ceil(a/d)

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

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

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


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

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


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

a,b,c,d = input().split()
a,b,c,d = int(a),int(b),int(c),int(d)
while a:
  c = c-b
  if c<=0:
    break
  a = a-d
  if a<=0:
    break
if a>=0 and c<=0:
  print("Yes")
if a<=0 and c>=0:
  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())
ターン制だから
while True:
    
    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 True:
    
    c-=b
    if c<=0:
        print("Yes")
        exit()
    
    a-=d
    if a<=0:
        print("No")
        exit()

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

from sys import stdin
A, B, C,D = [int(x) for x in stdin.readline().rstrip().split()]
while True:
  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())

x = C / B
y = C % B
p = A / D
q = A % D

if (x > p):
  print("Yes")
elif (x < p):
  print("No")
else
  if (y == 0 and q <> 0):
    print("Yes")
  elif (y <> 0 and q == 0):
    print("No")
  else :
    print("Yes")


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

flg = true
t = false
while(flg):
  t = true
  D -= B
  if (D <= 0):
    break
  t = false
  A -= C
  if (A <= 0) :
    break

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

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

x = C / B
y = C % B
p = A / D
q = A % D

if (y <> 0):
  x += 1
if (q <> 0):
  p += 1

if (x <= p):
  print("Yes")
elif (x > p):
  print("No")


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

x = C / B
y = C % B
p = A / D
q = A % D

if (x < p):
  print("Yes")
elif (x > p):
  print("No")
else
  if (y == 0 and q <> 0):
    print("Yes")
  elif (y <> 0 and q == 0):
    print("No")
  else :
    print("Yes")


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

x = A / D
y = A % D
p = C / B
q = C % B

if (p < x):
  print("Yes")
elif (p == x):
  if (y == 0 and q <> 0):
    print("No")
  else:
    print("Yes")
else:
  print("No")


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

x = C / B
y = C % B
p = A / D
q = A % D

if (x < p):
  print("Yes")
elif (x > p):
  print("No")
else
  if (y == 0):
    print("Yes")
  elif (y <> 0 and q == 0):
    print("No")
  else :
    print("Yes")


A, B, C, D = map(int, input().split())
 
flg = true
t = false
while(flg):
  t = true
  C -= B
  if (C <= 0):
    break
  t = false
  D -= B
  if (D <= 0) :
    break

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

A, B, C, D = map(int, input().split())
 
flg = true
t = false
while(flg):
  t = true
  C -= B
  if (C <= 0):
    break
  t = false
  A -= D
  if (A <= 0) :
    break

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

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

x = C / B
y = C % B
p = A / D
q = A % D

if (x > p):
  print("Yes")
elif (x < p):
  print("No")
else
  if (y == 0 and q <> 0):
    print("Yes")
  elif (y <> 0 and q == 0):
    print("No")
  else :
    print("Yes")


A, B, C, D = map(int, input().split())
 
flg = True
t = False
while(flg):
  C -= B
  if (C <= 0):
    t = True
    break
  A -= D
  if (A <= 0) :
    t = False
    break

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

Verdicts: Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

Runtime Error

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

T_HP = A
T_AT = B
A_HP = C
A_AT = D
T_count = 0
A_count = 0

while T_HP > 0:
    T_HP -= A_AT
    T_count += 1
while A_HP > 0:
    A_HP -= T_AT
    A_count += 1
print(T_count)
print(A_count)

if T_count > A_count:
    print('Yes')
if T_count == A_count:
    print('Yes')
else:
    print('No')

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

T_HP = A
T_AT = B
A_HP = C
A_AT = D
T_count = 0
A_count = 0

while T_HP >= 0:
    T_HP -= T_AT
    T_count += 1
while A_HP >= 0:
    A_HP -= A_AT
    A_count += 1

if T_count >= A_count:
    print('Yes')
else:
    print('No')

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

T_HP = A
T_AT = B
A_HP = C
A_AT = D
T_count = 0
A_count = 0

while T_HP > 0:
    T_HP -= A_AT
    T_count += 1
while A_HP > 0:
    A_HP -= T_AT
    A_count += 1

if T_count > A_count:
    print('Yes')
elif T_count == A_count:
    print('Yes')
else:
    print('No')

Verdicts: Wrong Answer

Wrong Answer

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

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

for i in range(100): 
    c -= b 

    if c <= 0>: 
        print('Yes') 
        break 

    a -= d 
 
    if a < 1: 
        print('No') 
        break 


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

for i in range(100): 
    c -= b 

    if c <= 0: 
        print('Yes') 
        break 

    a -= d 
 
    if a <= 0: 
        print('No') 
        break 


Verdicts: Runtime Error

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

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


while(1):
    C=C-B
    print("C:",C)
    A=A-D
    print("A:",A)

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

    if A <= 0:
        print("No")
        break
    

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

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


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

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

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

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


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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

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)

n_1=A//D
n_2=C//B

if n_2>=n_1:
    print("Yes")
else:
    print("No")

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

n_1=A//D
n_2=A/D
if n_1<n_2:
    takahashi=n_1+1
else:
    takahashi=n_1

n_3=C//B
n_4=C/B
if n_3<n_4:
   aoki=n_3+1
else:
    aoki=n_3

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


a, b, c, d = map(int, input().split())
while True:
    c = 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
import collections
import math

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))


a,b,c,d = nm()
ao=math.floor(a/d)
su=math.floor(c/b)
if(ao<su):
    print("No")
else:
    print("Yes")


import sys
import collections
import math

stdin = sys.stdin

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))


a,b,c,d = nm()
ao=math.ceil(a/d)
su=math.ceil(c/b)
if(ao<su):
    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())
flag="F"
while flag="F":
  c=c-b
  if c<=0:
    print("Yes")
    break
  a=a-d
  if a<=0:
    print("No")
    break

a,b,c,d=map(int,input().split())
flag="F"
while flag=="F":
  c=c-b
  if c<=0:
    flag="Y"
  else:
    a=a-d
    if a<=0:
      flag="N"
if flag=="Y":
  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())
 

X = (A+D-1) // D
Y = (C+B-1) // B
if X <= Y: print('Yes')
else: print('No')


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

X = (C+B-1) // B
Y = (A+D-1) // A
if X >= Y: print('Yes')
else: print('No')

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

X = (C+B-1) // B
Y = (A+D-1) // D
if X >= Y: print('Yes')
else: print('No')
 

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


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

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

X = (A+D-1) // D
Y = (C+B-1) // B
if X >= Y: print('Yes')
else: print('No')

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

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

Submission attempts (in order):
n = list(map(int, input().split()))
while n[0]>0 or n[2]>0:
    n[2] = n[2] - n[1]
    if n[2] <= 0:
        break
    n[0] = n[0] - n[3]

if n[0]>=n[2]:
    print("Yes")
else:
    print("No")

n = list(map(int, input().split()))
while n[0]>0 and n[2]>0:
    n[2] = n[2] - n[1]
    if n[2] <= 0:
        break
    n[0] = n[0] - n[3]

if n[0]>n[2]:
    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,imput().split())
x = C // B
y = A // D
if x >= y:
  print("Yes")
else:
  print("No")

A,B,C,D = map(int,imput().split())
x = C // B
y = A // D
if x >= y:
  print("Yes")
elif y > x:
  print("No")

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

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

A,B,C,D = map(int,input().split())
x = C // B
if C % B == 0:
    x = x-1
y = A // D
if A % D == 0:
    y = y-1
if x > y:
  print("No")
else:
  print("Yes")

Verdicts: Runtime Error

Runtime Error

Wrong Answer

Wrong Answer

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

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

A, B, C, D = map(int, input().split())
turn = "t"
while(A > 0 and C > 0):
    if turn == "t":
        C -= B
        turn = "a"
    else:
        A -= D
        turn = "t"
if A <= 0:
    print("No")
elif C <= 0:
    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())
win=A/D
lose=C/B
if win=>lose:
  print("Yes")
else:
  if lose<=1:
    print("Yes")
  else:
    if lose-win<1 and A%D!=0:
      print("Yes")
    else:
      print("No")

A,B,C,D=map(int,input().split())
win=A//D
lose=C//B
if lose<=win:
  print("Yes")
else:
  print("No")


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

Verdicts: Runtime Error

Wrong Answer

Accepted