#abc207a. A - Repression
A - Repression
Score : points
问题描述
桌上有三张卡片,每张卡片上都写有一个正整数。这些整数分别为 、 和 。
你已选择并拿起两张卡片。
找出所选卡片上所写整数的最大可能和。
以上为通义千问 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 , , and .
You have chosen two cards and picked them up.
Find the maximum possible sum of the integers written on the picked cards.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the answer as an integer.
Sample Input 1
3 4 5
Sample Output 1
9
If you pick up two cards with and , the sum of the integers will be .
There is no way to pick up cards with a greater sum, so we should print .
Sample Input 2
6 6 6
Sample Output 2
12
Whichever two cards you choose, the sum of the integers will be .
Sample Input 3
99 99 98
Sample Output 3
198
update @ 2024/3/10 09:20:01