[UOI 2023 II Stage] Gallery
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
题目描述
Cossack Vus works in a gallery, and he was given the task of building the highest tower of vases possible.
He has three vases with heights , , . However, unfortunately, if three vases are placed on top of each other, the structure will quickly break. Cossack can only choose two vases and place them on top of each other. He wants to get the highest composition of vases.
Find the maximum height he can reach.
输入格式
The first line contains three integers , , ().
输出格式
Output the maximum height of the composition that satisfies the condition.
7 4 3
11
2 2 6
8
提示
In the first example, we can take the first and second vases. The height of the composition will be .
In the second example, we can take the second and third vases. The height of the composition will be . You can also take the first vase instead of the second.