102110: [AtCoder]ABC211 A - Blood Pressure

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a person's systolic blood pressure, $A$, and diastolic blood pressure, $B$.
Find the mean arterial pressure, $C$, which we define as follows:

  • $C = \frac{A-B}{3} +B$.

Constraints

  • $50 \leq B \leq A \leq 300$
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

$A$ $B$

Output

Print the value $C$.
Your output is considered correct when its absolute or relative error from our answer is at most $10^{-5}$.


Sample Input 1

130 100

Sample Output 1

110

We have $C = \frac{130-100}{3} +100 = 10 + 100 = 110$.


Sample Input 2

300 50

Sample Output 2

133.3333333

Note that although all the values in input are integers, the value to output may not be an integer.


Sample Input 3

123 123

Sample Output 3

123

Input

题意翻译

# [ABC211A] Blood Pressure ## 题目描述 [problemUrl]: https://atcoder.jp/contests/abc211/tasks/abc211_a 已知收缩压A和舒张压B,求平均血压C的公式如下: - $ C\ =\ \frac{A-B}{3}\ +B $ ## 输入格式 输入A和B两个整数 > $ A $ $ B $ ## 输出格式 输出$ C $的值 输出值与正确答案的误差不大于$ 10^{-5} $ ## 样例 #1 ### 样例输入 #1 ``` 130 100 ``` ### 样例输出 #1 ``` 110 ``` ## 样例 #2 ### 样例输入 #2 ``` 300 50 ``` ### 样例输出 #2 ``` 133.3333333 ``` ## 样例 #3 ### 样例输入 #3 ``` 123 123 ``` ### 样例输出 #3 ``` 123 ``` ## 提示 ### 制約 - $ 50\ \leq\ B\ \leq\ A\ \leq\ 300 $ 输入数字为整数 ### Sample Explanation 1 $ C\ =\ \frac{130-100}{3}\ +100\ =\ 10\ +\ 100\ =\ 110 $ 。 ### Sample Explanation 2 输出值不一定是整数

Output

分数:100分

问题描述

你被给出了一个人的收缩压$A$和舒张压$B$。
找出平均动脉压$C$,我们定义如下:

  • $C = \frac{A-B}{3} +B$。

限制条件

  • $50 \leq B \leq A \leq 300$
  • 输入中的所有值都是整数。

输入

输入从标准输入以以下格式给出:

$A$ $B$

输出

打印出$C$的值。
当你的输出与我们的答案之间的绝对或相对误差不超过$10^{-5}$时,你的输出被认为是正确的。


样例输入1

130 100

样例输出1

110

我们有$C = \frac{130-100}{3} +100 = 10 + 100 = 110$。


样例输入2

300 50

样例输出2

133.3333333

请注意,尽管输入中的所有值都是整数,但要输出的值可能不是整数。


样例输入3

123 123

样例输出3

123

加入题单

算法标签: