题解 | 累加数与平均值

累加数与平均值

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

import sys


str1 = input()
list1 = str1.split(' ')
list2 =[]
for i in range(0,len(list1)):
    list2.append(int(list1[i]))

print('%d %.1f'%(sum(list2),sum(list2)/len(list2)))

#man what can i say





全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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