题解 | #统计牛客网数据#

统计牛客网数据

https://www.nowcoder.com/practice/5abf64ac972f4a8083940df7a33fe18d

str1= input()
list1 = str1.split(" ")
list2 = []
for num in list1:
    list2.append(int(num))
print(max(list2))
print(min(list2))
s=0
for i in list1:
    s += int(i)

print(s)

这个题目就是要注意传入的是str,但是要计算的是int,所以要作格式转换

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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