問題一覧 > 通常問題

No.1735 C#

レベル : / AI推定難易度 : 77 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (解説公開後に AC するまで非表示) / 解いたユーザー数 331
作問者 : Shirotsume / テスター : nok0 とりゐ
お気に入りにしたユーザー ProblemId : 7165 / 自分の提出
問題文最終更新日: 2022-04-29 23:28:05
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 322 (順位表) の他の問題:

Problem Statement

In English note names, which are $1$ of the ways to represent musical pitch, "do re mi fa sol la ti do" correspond to CDEFGABC, respectively.

For each of A, C, D, F, and G, the note a semitone higher is A#, C#, D#, F#, and G#, respectively.

The note a semitone higher than E is F, and the note a semitone higher than B is C.

Given a note name $S$, tell us the name of the note a semitone higher than $S$.

Constraints

  • $S$ is $1$ character from ABCDEFG

Input

The input is given from standard input in the following format.

$S$

Output

Among the note names a semitone higher than $S$, output the one that appears in the problem statement. Print a newline at the end.

Sample

Sample 1
Input
C
Output
C#

The note a semitone higher than C is C#. Other note names exist as well, but output the one that appears in the problem statement.

Sample 2
Input
E
Output
F

The note a semitone higher than E is F.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。