组队
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.
Background
究竟是左撇子厉害, 还是右撇子厉害呢?
Description
在土拨篮球社团里, 有a个人是左撇子, b个人是右撇子, c个人是左右撇子.
现在教练想要组建一直队伍, 要求左撇子和右撇子的人一样多, 左右撇子即可以是左撇子, 又可以是右撇子.
你希望篮球队的人数尽可能的多, 请问最多有多少人?
Format
Input
给你3个整数
Output
输出一个整数, 表示篮球队最多多少人
Samples
1 4 2
6
5 5 5
14
0 2 0
0
Limitation
1s, 1024KiB for each test case.
大明
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 38
- Start at
- 2025-2-11 16:00
- End at
- 2025-2-28 8:00
- Duration
- 400 hour(s)
- Host
- Partic.
- 7