luogu#P1785. 漂亮的绝杀

漂亮的绝杀

Background

It is said that absi2011's penguin is fighting the Boss on floor 6060 of the Tower of the God of War.

Oh no, this round is going to be lost: the penguin has 44 HP left while the Boss still has 392392. Wow, beautiful—Red Tassel Spear combo, 280280, 343343 (critical hit), finisher! Lifesteal (44 stars, 50%50\% lifesteal), perfect victory (absi2011's level 6060 penguin has low max HP, only 315315. 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 33-star / 44-star / 55-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 0 \le 0 (in fact, if it becomes <0<0, it is automatically treated as =0=0).
    • 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 315315.
  • Constraints:

    • For 30%30\% of the testdata, it is guaranteed that the result is Wrong Data or No or Yes (newline) Great.
    • For another 30%30\% of the testdata, it is guaranteed that the result is not Wrong Data.
    • For 100%100\% of the testdata, it is guaranteed that 10000x10000-10000\leq x\leq 10000, 10000y10000-10000\leq y\leq 10000, 10000z10000-10000\leq z\leq 10000, even if it is Wrong Data.
  • Source:

    • fight.pet.qq.com
    • Original problem authorized by absi2011.

Translated by ChatGPT 5