题解 | #统计牛客网数据#
统计牛客网数据
https://www.nowcoder.com/practice/5abf64ac972f4a8083940df7a33fe18d
def main(): s1 = input() try: lists = s1.split(' ') lists = list(filter(lambda x: x, lists)) #过滤掉空字符 lists = [int(item) for item in lists] #转为int的数组 r1 = max(lists) r2 = min(lists) r3 = sum(lists) print(r1) print(r2) print(r3) except Exception as e: print(str(e)) if __name__ == '__main__': main()