Repression

AtCoder
IDabc207_a
Time2000ms
Memory256MB
Difficulty
There are three cards on the desk, each with a positive integer written on it. The integers on the cards are $A$, $B$, and $C$. You have chosen two cards and picked them up. Find the maximum possible sum of the integers written on the picked cards. ## Constraints * $1 \leq A,B,C \leq 100$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ $C$ [samples]
Samples
Input #1
3 4 5
Output #1
9

If you pick up two cards with $4$ and $5$, the sum of the integers will be $4+5=9$.
There is no way to pick up cards with a greater sum, so we should print $9$.
Input #2
6 6 6
Output #2
12

Whichever two cards you choose, the sum of the integers will be $12$.
Input #3
99 99 98
Output #3
198
API Response (JSON)
{
  "problem": {
    "name": "Repression",
    "description": {
      "content": "There are three cards on the desk, each with a positive integer written on it. The integers on the cards are $A$, $B$, and $C$. You have chosen two cards and picked them up. Find the maximum possible ",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc207_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There are three cards on the desk, each with a positive integer written on it. The integers on the cards are $A$, $B$, and $C$.\nYou have chosen two cards and picked them up.\nFind the maximum possible ...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments