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

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

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

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

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

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

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

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

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

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

a = int(input())
b = int(input())
c = int(input())
d = int(input())

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

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

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

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

while (a<=0) or (c<=0):
  if c>0:
    c -= b
  else:
    break
   
  if a>0:  
    a -= d
  else:
    break
  
else:
  break

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

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

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

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

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

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

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

    

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

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


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

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

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

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

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

Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Runtime Error

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Runtime Error

Wrong Answer

Accepted