input:
100.0 8.0 10.0 5.0 3 10.0 999.0 20.0 10.0 40.0 20.0
ans:
60.00
可以hack掉一部分题解"https://www.luogu.com.cn/blog/chuxuan-jjy/solution-p1016"