Run ID:95150
提交时间:2024-10-27 08:47:20
b = int(input()) a = list(map(int,input().split())) i = 1 c = 0 for _ in range(b): if a[i] != max(a): c = c + a[i] i = i + 1 print(c)