No.1735 C#
タグ : / 解いたユーザー数 331
作問者 :
nok0
とりゐ
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もしくは右上の雲マークをクリックしてアカウントを作成してください。