luogu#P1785. 漂亮的绝杀
漂亮的绝杀
Background
It is said that absi2011's penguin is fighting the Boss on floor of the Tower of the God of War.
Oh no, this round is going to be lost: the penguin has HP left while the Boss still has . Wow, beautiful—Red Tassel Spear combo, , (critical hit), finisher! Lifesteal ( stars, lifesteal), perfect victory (absi2011's level penguin has low max HP, only . Those who have played Le Dou, don't mock it).
Output Format
As described above:
- If the data are wrong, print
Wrong Data. - Otherwise, if a finisher is not possible, print
No. - Otherwise, print
Yes, then continue with the required lines for -star / -star / -star as specified in the problem description.
392 4 343
Yes
Eh..
OK
392 1 101
No
Hint
-
Notes:
- The Boss dies if and only if the Boss’s HP (in fact, if it becomes , it is automatically treated as ).
- It is possible that the Boss dies in one hit; then the combo cannot continue, and only the lifesteal from the killing blow is counted.
- Max HP is .
-
Constraints:
- For of the testdata, it is guaranteed that the result is
Wrong DataorNoorYes(newline)Great. - For another of the testdata, it is guaranteed that the result is not
Wrong Data. - For of the testdata, it is guaranteed that , , , even if it is
Wrong Data.
- For of the testdata, it is guaranteed that the result is
-
Source:
- fight.pet.qq.com
- Original problem authorized by absi2011.
Translated by ChatGPT 5