题解 | 累加数与平均值
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
w=input().split() a=0 for i in range(len(w)): a+=int(w[i]) b=len(w) mean=a/b c=round(mean, 1) print(f'{a} {c}')
累加数与平均值
https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697
w=input().split() a=0 for i in range(len(w)): a+=int(w[i]) b=len(w) mean=a/b c=round(mean, 1) print(f'{a} {c}')
相关推荐