Run ID:138860

提交时间:2025-11-30 11:41:37

#include <bits/stdc++.h> using namespace std; long long n,o=0,p=0,q=1111110; int main(){ scanf("%lld",&n); for(int j=1;j<=n;j++){ scanf("%lld",&o); p+=o; q=min(q,o); } printf("%lld",p-q); return 0; }