#947. 小P的单调数列
小P的单调数列

输入样例1
4
1 2 5 4
输出样例1
8.000
输入样例2
6
3 1 7 2 6 5
输出样例2
10.500

Statistics
Related
In following contests:

4
1 2 5 4
8.000
6
3 1 7 2 6 5
10.500

In following contests:
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.