| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 77292 | sh25_shenpy | 不与最大数相同的数字之和 | C++ | Accepted | 0 MS | 260 KB | 256 | 2025-12-21 21:15:00 |
#include <bits/stdc++.h> #include<algorithm> using namespace std; int main( ) { int n,x=0; int s[n]; cin>>n; for(int i=0;i<n;++i){ cin>>s[i]; x+=s[i]; } sort(s,s+n); cout<<x-s[n-1]; return 0; }