Round Up the Mean

AtCoder
IDabc082_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
1 3
Output #1
2

The average of $1$ and $3$ is $2.0$, and it will be rounded up to the nearest integer, $2$.
Input #2
7 4
Output #2
6

The average of $7$ and $4$ is $5.5$, and it will be rounded up to the nearest integer, $6$.
Input #3
5 5
Output #3
5
API Response (JSON)
{
  "problem": {
    "name": "Round Up the Mean",
    "description": {
      "content": "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.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc082_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "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.\n\n## Constraints\n\n*   $a$ and $b$ are integers.\n*   $1 \\leq a, b \\le...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments