Blood Pressure

AtCoder
IDabc211_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
130 100
Output #1
110

We have $C = \frac{130-100}{3} +100 = 10 + 100 = 110$.
Input #2
300 50
Output #2
133.3333333

Note that although all the values in input are integers, the value to output may not be an integer.
Input #3
123 123
Output #3
123
API Response (JSON)
{
  "problem": {
    "name": "Blood Pressure",
    "description": {
      "content": "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$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc211_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a person's systolic blood pressure, $A$, and diastolic blood pressure, $B$.  \nFind the mean arterial pressure, $C$, which we define as follows:\n\n*   $C = \\frac{A-B}{3} +B$.\n\n## Constrain...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments