No.3279 Dhole vs Monster
タグ : / 解いたユーザー数 121
作問者 :
highlighter
Problem Statement
Dhole-chan is cute, isn't she?
The damage multipliers of Dhole's Kemono Miracle (special move) at levels $1,2,3,4,5$ are $390,429,468,507,546$, respectively. However, when the attack type is Beat, the multiplier is calculated as if the level were $1$ higher.
You are given an integer $L$ representing the level and a string $S$ representing the attack type. Output the multiplier of Dhole's Kemono Miracle in this case. No input will be given that would require outputting a multiplier corresponding to level $6$ or higher.
You may use the following text if needed.
390,429,468,507,546
Constraints
- $1\leq L\leq 5$
- $S$ is one of
Action,Beat,Try - When $L=5$, $S$ is not
Beat - $L$ is an integer
Input
$L$ $S$
Output
Output the answer.
Sample
Sample 1
Input
1 Action
Output
390
Let's raise her and make her stronger from here on.
Sample 2
Input
1 Beat
Output
429
She gets a little stronger depending on the attack type.
Sample 3
Input
5 Try
Output
546
It seems her level has been fully upgraded.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。