問題一覧 > 通常問題

No.3279 Dhole vs Monster

レベル : / AI推定難易度 : 77 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 121
作問者 : hirayuu_yc / テスター : highlighter
お気に入りにしたユーザー ProblemId : 12205 / 自分の提出
問題文最終更新日: 2025-09-24 13:21:14
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 484 (順位表) の他の問題:

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もしくは右上の雲マークをクリックしてアカウントを作成してください。