P1785 A Brilliant Finisher
Background
It is said that absi2011's penguin is fighting the Boss on floor $60$ of the Tower of the God of War.
Oh no, this round is going to be lost: the penguin has $4$ HP left while the Boss still has $392$. Wow, beautiful—Red Tassel Spear combo, $280$, $343$ (critical hit), finisher! Lifesteal ($4$ stars, $50\%$ lifesteal), perfect victory (absi2011's level $60$ penguin has low max HP, only $315$. Those who have played Le Dou, don't mock it).
Description
别说这是个巧合,这类绝杀还真不少。
现在假设 Boss 还剩下的血为 $x$,absi2011 的企鹅剩 $y$ 血,它拿出的武器的伤害最高是 $z$。它的武器有几率连击。
他问你有无可能绝杀(可连击)。如果能,请先输出一行 `Yes`,否则输出 `No`。如果他给你的数据是错的,请输出 `Wrong Data`。
数据有这么几种情况算错:$y\leq 0$ 或 $y>315$ 或 $y\geq x$ 或 $x>1800$(当前斗神塔 Boss 好像没有超过 $1800$ 血的)或 $z\geq 1000$(红缨枪+天马流星拳+会心一击+残影+武器好手好像都达不到)或 $z\leq 100$(absi2011 认为小于等于 $100$ 就不算绝杀了)。
(输出 `Yes` 后)接下来,他还想问绝杀(就算最高伤害后)如果触发他的 $3$ 星嗜血 / $4$ 星嗜血 / $5$ 星吸星大法各能不能完胜。三星每次的嗜血嗜血量为 $33\%\times$ 伤害(下取整),四星每次的嗜血嗜血量为 $50\%\times$ 伤害(下取整),五星吸星大法嗜血量为 $100\%\times$ 伤害(这还真不用下取整)。两次要分开算。如果超过血上限就不再回血了。
如果三星能就输出一行 `Great`,四星能就输出一行 `Eh..` 和一行 `OK`,五星能就输出两行 `Oh..` 和一行 `Yes , If he can get 5-star.`。
如果都不行,那么输出三行 `No` 和他 $4$ 星嗜血后的血量。
注意,有可能打一下 Boss 就死了,那么不能连击嗜血了。只能算打死 Boss 那下的嗜血。
Boss 死掉当且仅当 Boss 血 $\leq 0$(其实 $
Input Format
一行三个整数,$x,y,z$。
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 $3$-star / $4$-star / $5$-star as specified in the problem description.
Explanation/Hint
- Notes:
- The Boss dies if and only if the Boss’s HP $ \le 0$ (in fact, if it becomes $