题解 | #求平均值#
求平均值
http://www.nowcoder.com/practice/c44b98aeaf9942d3a61548bff306a7de
awk '{if(NR==1)fm=1}END{printf "%.3f", ((count-fm)*1.000/fm)}' nowcoder.txt
求平均值
http://www.nowcoder.com/practice/c44b98aeaf9942d3a61548bff306a7de
awk '{if(NR==1)fm=1}END{printf "%.3f", ((count-fm)*1.000/fm)}' nowcoder.txt
相关推荐