rt。Hack @Code_星云 的题解,double的精度有问题。
double
input:
5 100 2 3 3 5 25
ans:
40.00 20.00
第一篇题解输出:
20.00 20.00