题解 | #累加数与平均值#

累加数与平均值

https://www.nowcoder.com/practice/ed009465ad6940609542ef5879a0d697

input1 = [int(i) for i in input().split()]
age = 0
for i in range(len(input1)):
    age += input1[i]
ave = age/len(input1)
print(age,'%.1f'%ave)

全部评论

相关推荐

码农索隆:想看offer细节
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务