#B. A - Blood Pressure

    传统题 1000ms 256MiB

A - Blood Pressure

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Blood Pressure

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:

AA BB

Output

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


130 100
110

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


300 50
133.3333333

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


123 123
123

2025寒假ATC码力训练营第八次练习

未参加
状态
已结束
规则
IOI
题目
6
开始于
2025-1-31 13:00
结束于
2025-1-31 14:30
持续时间
1.5 小时
主持人
参赛人数
5