No.1485 Fare
レベル :
/ AI推定難易度 : 73
/ 実行時間制限 : 1ケース 2.000秒 / メモリ制限
: 512 MB / 標準ジャッジ問題
タグ : / 解いたユーザー数 388
作問者 :
iwa_choco_168
/ テスター :
yuki2006
koinko_game
タグ : / 解いたユーザー数 388
作問者 :
iwa_choco_168
/ テスター :
koinko_game
問題文最終更新日: 2021-04-23 20:50:09
English (AI translation)
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 292
(順位表)
の他の問題:
Problem Statement
Today is the day of an important meeting. Iwachoko, who was preparing materials until late the night before, has overslept, of all things.
Iwachoko usually walks to work, but just for today he has decided to use both a train and a bus. The train fare is $n$ yen, and the bus fare is $m$ yen.
Given the train fare $n$ and the bus fare $m$, output the fare for the commute.
Note that the cases of using only the train or only the bus are not considered.
Input
$n\ m$
$n$ and $m$ are integers satisfying $1 \le n, m \le 1000$.
Output
Output the answer, followed by a newline at the end.
Sample
Sample 1
Input
123 456
Output
579
Sample 2
Input
1000 1000
Output
2000
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。