#P1785. 漂亮的绝杀

漂亮的绝杀

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