标签:des style c class blog code
Time
Limit: 6000/3000 MS (Java/Others) Memory Limit:
65535/32768 K (Java/Others)
Total Submission(s):
22376 Accepted Submission(s):
6396
【题目来源】
#include<cstdio> int main() { int T; scanf("%d",&T); while(T--) { int n; scanf("%d",&n); __int64 Max=-1; __int64 sum=0; __int64 a; for(int i=0;i<n;i++) { scanf("%I64d",&a); if(a>Max) Max=a; sum+=a; } if(sum-Max+1<Max) printf("No\n"); else printf("Yes\n"); } return 0; }
标签:des style c class blog code
原文地址:http://www.cnblogs.com/acmer-jsb/p/3755264.html