#abc211a. A - Blood Pressure
A - Blood Pressure
Score : points
问题陈述
给定一个人的收缩压 和舒张压 。
-
计算平均动脉压 ,其定义如下:
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
You are given a person's systolic blood pressure, , and diastolic blood pressure, .
Find the mean arterial pressure, , which we define as follows:
- .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the value .
Your output is considered correct when its absolute or relative error from our answer is at most .
Sample Input 1
130 100
Sample Output 1
110
We have .
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
update @ 2024/3/10 09:25:28