60才及格
查看原帖
60才及格
1413309
makeway楼主2024/8/28 16:29
#include<bits/stdc++.h>
using namespace std;
int b,highest=-1e9,ans=0;
int main()
{
	cin>>b;
	int a[b];
	for(int i=1;i<=b;i++){
		cin>>a[i-1];
		if(highest<a[i-1])highest=a[i-1];
		ans+=a[i-1];
	}
	cout<<ans-highest;
	return 0;
}
2024/8/28 16:29
加载中...