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 time
A,B,C,D = map(int,input().split())


if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

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

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

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end

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

for i in C,A:
    if C-B <=0 :
        print("Yes")
    elif C-B >0:
        C = C-B
    elif D-A <=0 :
        print("No")
    else: 
        D = D-A


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

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

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


import time
A,B,C,D = 3,3,10,1

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

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

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

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

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

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

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


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


if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

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

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

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end

if C-B <=0 :
    print("Yes")
elif C-B >0:
    C = C-B
else:
    end 

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

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

if A-D <=0:
    print("No")
elif A-D>0:
    D = A-D
else:
    end



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

for i in range(101):
    if C-B <=0 :
        print("Yes")
        break
    elif A-D <=0:
        print("No")
        break
    else:
        C = C-B
        A = A-D
  


Verdicts: Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Wrong Answer

Accepted