| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158941 | 张蔚林 | 22砝码的重量 | C++ | Accepted | 1 MS | 276 KB | 220 | 2026-08-23 14:03:04 |
#include<bits/stdc++.h> using namespace std; int main() { int m,x[1001],h=0,min=1000; cin>>m; for(int i=0;i<m;i++){ cin>>x[i]; h+=x[i]; if(min>x[i]){ min=x[i]; } } cout<<h-min; return 0; }