Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138860 万骏博 22砝码的重量 C++ Accepted 0 MS 268 KB 235 2025-11-30 11:41:37

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; long long n,o=0,p=0,q=1111110; int main(){ scanf("%lld",&n); for(int j=1;j<=n;j++){ scanf("%lld",&o); p+=o; q=min(q,o); } printf("%lld",p-q); return 0; }