| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4542 | 苏莉雯 | 买不买 | C++ | Wrong Answer | 0 | 1 MS | 256 KB | 275 | 2025-01-12 16:45:19 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a,b=0,c=0,d; cin>>n; for(int i=1;i<=n;i++) { cin>>a; if(a>c) { c=a; } b+=a; } d=b; d-=c; if(b>100) { cout<<"Yes"<<endl<<d; } else { cout<<"No"<<endl<<d; } }