100 atcoder#ABC164B. [ABC164B] Battle
[ABC164B] Battle
Score : points
Problem Statement
Takahashi and Aoki will have a battle using their monsters.
The health and strength of Takahashi's monster are and , respectively, and those of Aoki's monster are and , 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 or below. The person with the monster whose health becomes or below loses, and the other person wins.
If Takahashi will win, print Yes
; if he will lose, print No
.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If Takahashi will win, print Yes
; if he will lose, print No
.
10 9 10 10
No
First, Takahashi's monster attacks Aoki's monster, whose health is now .
Next, Aoki's monster attacks Takahashi's monster, whose health is now .
Takahashi's monster is the first to have or less health, so Takahashi loses.
46 4 40 5
Yes