Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
83080 sh25_shengmy 不与最大数相同的数字之和 C++ 通过 1 MS 248 KB 226 2026-01-22 19:28:53

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int s=0; int a[n]; for(int m=0;m<n;++m){ cin>>a[m]; s+=a[m];} sort(a,a+n); cout<<s-a[n-1]; return 0; }


测评信息: