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

PROGRAMMING:Husky beat monster

Luz5年前 (2021-05-10)题库475
Husky beat monster, a husky and a monster in solo. It is known that Husky's blood is x1, attack power is Y1, monster's blood is X2, attack power is Y2; Husky and monster attack each other;
The rule of the duel is that husky beat the monster first, then the monster beat husky, and then husky beat the monster, until one side's blood is less than or equal to 0;
If husky successfully outputs "hsqwin", otherwise it outputs "hsqlose";
###Input format:
The input is four integers x1, Y1, X2, Y2;
###Output format:
If husky successfully outputs "hsqwin", otherwise it outputs "hsqlose";
###Input example:
Here is a set of inputs. For example:
```in
305 477 658 141
233 856 641 686
400 392 278 302
```
###Output example:
The corresponding output is given here. For example:
```out
hsqwin
hsqwin
hsqwin
```







answer:If there is no answer, please comment