#abc207a. A - Repression

A - Repression

Score : 100100 points

问题描述

桌上有三张卡片,每张卡片上都写有一个正整数。这些整数分别为 AABBCC

你已选择并拿起两张卡片。

找出所选卡片上所写整数的最大可能和。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

There are three cards on the desk, each with a positive integer written on it. The integers on the cards are AA, BB, and CC.

You have chosen two cards and picked them up.

Find the maximum possible sum of the integers written on the picked cards.

Constraints

  • 1A,B,C1001 \leq A,B,C \leq 100
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

AA BB CC

Output

Print the answer as an integer.

Sample Input 1

3 4 5

Sample Output 1

9

If you pick up two cards with 44 and 55, the sum of the integers will be 4+5=94+5=9.

There is no way to pick up cards with a greater sum, so we should print 99.

Sample Input 2

6 6 6

Sample Output 2

12

Whichever two cards you choose, the sum of the integers will be 1212.

Sample Input 3

99 99 98

Sample Output 3

198

update @ 2024/3/10 09:20:01