Run ID:86966

提交时间:2024-07-31 18:43:34

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