题解 | #累加数与平均值#
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
import sys a=input().split(" ") sum=0 for i in a: sum=sum+int(i) print("%d %.1f" %(sum,sum/len(a)))
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
import sys a=input().split(" ") sum=0 for i in a: sum=sum+int(i) print("%d %.1f" %(sum,sum/len(a)))
相关推荐