-->
当前位置:首页 > 题库

PROGRAMMING:Yewang certification

Luz5年前 (2021-05-10)题库402
As soon as Xiao Liu scored 2500 points in the top competition, he couldn't wait to launch solo against his roommate
They will choose different heroes. Each hero has only two attributes (HP and attack power). Xiao Liu has a lot of skin
Will give him gain (loss) effect (increase or decrease HP and attack power)
Then Xiao Liu and his roommate Solo (single), Xiao Liu first, each time to make each other's blood reduce their attack power
When one side's HP is less than or equal to 0, he is defeated. Xiao Liu thinks he can become a certified wild king. Now he wants you to help him judge
Can you become a certified wild king
###Input format:
There are three lines
The first two integers, h and a, represent Xiao Liu Yingxiong's health and attack power
The second line contains two integers h and a, representing the HP and attack power of the roommate hero
The third line contains two integers, pH, PA, representing the increased blood volume and attack power of the skin
###Output format:
If Xiao Liu can beat unlimited roommates to become the wild king of certification, then output "the king of the wild certification!";
Otherwise, if Xiao Liu can't beat any roommate, it will output "I'm too dishes!";
Otherwise, output an integer to show the number of roommates Xiao Liu beat,
###Input example:
The corresponding input is given here. For example:
```in
2 1
2 1
3 0
```
###Output example:
The corresponding output is given here. For example:
```out
four
```
In order to win the game, Xiao Liu will wear skin, and his roommate thinks that Xiao Liu Taicai will not wear skin
The data guarantees that h, a, h and a will not have negative numbers, and the attributes of skin can be negative;







answer:If there is no answer, please comment