[R2A]三人组队
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
时空限制
1S/512M
题目描述
给定 个人的能力值 ,从中选出三个人组队参赛,队伍的总能力值为三个人能力值之和,求队伍的最大总能力值。
格式
输入格式
第一行包含一个整数 ,表示人数。
第二行包含 个整数 ,表示每个人的能力值。
输出格式
输出一个整数,表示队伍总能力值的最大值。
样例
样例输入 #1
5
1 2 3 4 5
样例输出 #1
12
数据规模
对于 的数据, , 。
代码源挑战赛 Round 2
- Status
- Done
- Rule
- DMY
- Problem
- 6
- Start at
- 2025-3-7 20:00
- End at
- 2025-3-7 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 464