3548: Crossing River
Memory Limit:256 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
[md]
几个人过河,每次过两人一人回,速度由慢者决定,问过河所需最短时间。
[/md]
Sample Input Copy
1
4
1 2 5 10
Sample Output Copy
17