No.1156 Nada Picnic 2
Problem Statement
Every time he went on a school excursion, Mitsubachi made a verbal arithmetic puzzle (覆面算) inspired by the destination.
In year $1$ of junior high school it was 「シイタ+ケヤマ=イキタイ」, in year $2$ of junior high school it was 「オオツカ+コクサイ=ビジツカン」, and in year $3$ of junior high school it was 「spring+eight=picnic」.
Given an integer $N$ between $1$ and $3$, inclusive, solve the verbal arithmetic puzzle he made in year $N$ of junior high school.
However, you only need to answer the sum. For example, when $N=2$, output the value corresponding to "ビジツカン".
If multiple solutions exist, you may output any of them, but outputting more than one solution will be judged as incorrect.
Follow the "Rules" section at the link below for the rules of verbal arithmetic.
[Rules]
Input
$N $
$N$ is an integer.
$1$ $\leq$ $N$ $\leq$ $3$
Output
Output the answer on $1$ line.
End the output with a newline.
Source
Nada High School 75th Class Junior High School Graduation Commemorative Contest: Nada Picnic 2
writer: Mitsubachi
tester: Mitarushi
Ported in accordance with the HackerRank terms of service. Some parts have been modified.
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
蜜蜂