##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
5
4 4 4
3 4 10
1 1 1000000000
7 2 4
5 6 11
12
13
3
11
21
You are given three sticks with integer lengths , , and .
You may cut the sticks. In one cut, you choose one stick and decrease its length by a positive integer. All stick lengths must remain positive integers.
Find the maximum possible perimeter of a non-degenerate triangle that can be made from the three sticks after some cuts. You may also make no cuts.
The sticks are . They already make a triangle, and the perimeter is .
We can cut the stick of length into length . Then the sticks become , and the perimeter is .
We can cut the stick of length into length . Then the sticks become , and the perimeter is .
We can cut the stick of length into length . Then the sticks become , and the perimeter is .
We can cut the stick of length into length . Then the sticks become , and the perimeter is .