問題一覧 > 通常問題

No.1156 Nada Picnic 2

レベル : / AI推定難易度 : 500 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / スペシャルジャッジ問題 (複数の解が存在する可能性があります)
タグ : (AC するまで非表示) / 解いたユーザー数 105
作問者 : 蜜蜂 / テスター : Mitarushi
お気に入りにしたユーザー ProblemId : 4952 / 自分の提出
問題文最終更新日: 2020-08-11 23:22:50
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

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