Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
4550 汤依宁 买不买 C++ 解答错误 50 0 MS 272 KB 298 2025-01-12 16:59:02

Tests(1/2):


#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,sum=0,max=0; cin>>a; max=c; for(b=0;b<a;b++) { cin>>c; sum+=c; if(c>max) { max=c; } } if(sum>100) { cout<<"Yes"<<endl; sum-=max; } else { cout<<"No"<<endl; } cout<<sum; }


测评信息:

输入

                    

输出

                    

答案

                    

系统信息

exit code: 0, checker exit code: 0

输入

8
21 18 32 10 5 46 58 1

输出

Yes
-32574

答案

Yes
133

系统信息

exit code: 0, checker exit code: 0