| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139206 | 万骏博 | 22不与最大数相同的数字之和 | C++ | Accepted | 0 MS | 264 KB | 311 | 2025-12-04 21:35:11 |
#include <bits/stdc++.h> using namespace std; long long n,o[101],p=0,q=0,sb=0; int main(){ scanf("%lld",&n); for(int j=1;j<=n;j++){ scanf("%lld",&o[j]); p+=o[j]; q=max(q,o[j]); } for(int i=1;i<=n;i++){ if(o[i]==q){ sb++; } } printf("%lld",p-(q*sb)); return 0; }