Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84544 胡海峰老师 22不与最大数相同的数字之和 Python3 Accepted 40 MS 3760 KB 130 2024-07-16 09:57:46

Tests(10/10):


Code:

n = int(input()) a = list(map(int,input().split())) res = 0 for ele in a: if ele != max(a): res +=ele print(res)