| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146773 | 翁思宸 | 22砝码的重量 | C++ | Wrong Answer | 0 MS | 276 KB | 423 | 2026-01-30 17:49:50 |
//1381 22砝码的重量 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ int n,m=1001,s=0; cin>>n; int a[n+1],b[n+1]; for(int i=1;i<=n;i++){ cin>>a[i]; if(a[i]<m){ m=a[i]; } } for(int i=1;i<=n;i++){ if(a[i]!=m){ s+=a[i]; } } cout<<s; return 0; }
------Input------
80 1 92 32 52 83 53 93 53 58 58 96 66 87 88 28 8 85 63 57 23 59 89 51 72 45 91 2 47 39 67 72 11 75 77 43 48 35 22 32 80 83 58 4 17 4 13 25 26 93 93 16 84 89 62 58 59 5 78 79 1 60 73 66 50 88 28 54 21 46 73 5 66 69 38 59 76 62 87 49 85 85
------Answer-----
4334
------Your output-----
4333