Time Limit: 2 sec / Memory Limit: 256 MB
配点 : 100 点
問題文
2 つの正整数 a, b が与えられます。 a, b の平均値を x とします。 x の小数点以下を切り上げて得られる整数を出力してください。
制約
- a, b は整数である。
- 1 \leq a, b \leq 100
入力
入力は以下の形式で標準入力から与えられる。
a b
出力
x の小数点以下を切り上げて得られる整数を出力せよ。
入力例 1
1 3
出力例 1
2
1, 3 の平均値は 2.0 であり、小数点以下を切り上げて得られる整数は 2 です。
入力例 2
7 4
出力例 2
6
7, 4 の平均値は 5.5 であり、小数点以下を切り上げて得られる整数は 6 です。
入力例 3
5 5
出力例 3
5
Score : 100 points
Problem Statement
You are given two positive integers a and b. Let x be the average of a and b. Print x rounded up to the nearest integer.
Constraints
- a and b are integers.
- 1 \leq a, b \leq 100
Input
Input is given from Standard Input in the following format:
a b
Output
Print x rounded up to the nearest integer.
Sample Input 1
1 3
Sample Output 1
2
The average of 1 and 3 is 2.0, and it will be rounded up to the nearest integer, 2.
Sample Input 2
7 4
Sample Output 2
6
The average of 7 and 4 is 5.5, and it will be rounded up to the nearest integer, 6.
Sample Input 3
5 5
Sample Output 3
5