当前位置:网站首页>Blue Bridge Cup_ Xiao Lan eats candy_ Pigeon nest principle / drawer principle
Blue Bridge Cup_ Xiao Lan eats candy_ Pigeon nest principle / drawer principle
2022-06-11 02:49:00 【This question AC sleep again】

//
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N=1e6+7;
LL in[N];
int main()
{
LL n,i,sum,tt;
while( cin>>n )
{
sum=tt=0;
for( i=0;i<n;i++ )
{
cin>>in[i];
sum+=in[i];
tt=max( tt,in[i] );
}
if( sum-tt > tt-1 ) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
return 0;
}边栏推荐
- List 过滤、排序、校验等处理方法
- MySQL is required to sort in ascending order greater than or equal to the current time, and then in descending order less than the current time
- Whether the software test needs to master the programming ability
- How to add two factor authentication for WordPress websites
- 求MySQL先按大于等于当前时间升序排序,再按小于当前时间降序排序
- Prophet
- Learning Tai Chi Maker - esp8226 (II)
- 【长时间序列预测】Aotoformer 代码详解之[3]模型整体架构分析
- js 内存泄漏
- Jetpack compose box control
猜你喜欢
![[Fibonacci series]](/img/03/70b1363e91142a8600d97c59b01b0f.png)
[Fibonacci series]

app 测试 常用 adb 命令集合

How to fix syntax errors in WordPress websites

WordPress article directory plug-in luckywp table of contents setup tutorial

A collection of common ADB commands for app testing

逃离大城市的年轻人:扛住了房价和压力,没扛住流行病
![[C language classic]: inverted string](/img/f3/e6f37b852d22d395314628b73c9be3.jpg)
[C language classic]: inverted string

Unity animator rewind
![[resolved] how to fix another update in progress WordPress upgrade error](/img/b1/7b9945c1a623c20288f0d232cbb0c4.jpg)
[resolved] how to fix another update in progress WordPress upgrade error

Jetpack compose scaffold and topappbar (top navigation)
随机推荐
【面试题 17.04. 消失的数字】
Tests logiciels vocabulaire commun anglais
error exepected identifier before ‘(‘ token, grpc 枚举类编译错误
银行选择电子招标采购的必要性
AOSP ~ Logcat Chatty 行过期
Why can some programmers get good offers with average ability?
Necessity for banks to choose electronic bidding procurement
Introduction to the functions of today's headline search webmaster platform (portal)
When a logical deletion encounters a unique index, what are the problems and solutions?
92. actual combat of completable future
你的公司会选择开发数据中台吗?
Unity camera camera about layer mask cullingmask settings
Metal organic framework MOF Al (Diba), MOF Zr (Diba), MOF Fe (Diba) loaded with curcumin / carboxybenzylpenicillin /mtx methotrexate / paclitaxel ptx/ DOX / cisplatin cddp/cpt camptothecin and other d
AOSP ~ 默认开启开发者模式
完成千万元A轮融资,小象生活能否成为折扣界的“永辉”?
A collection of common ADB commands for app testing
从绿联冲刺IPO,看手机配件市场沉浮录
Kotlin apply method
牛客网:数组中只出现一次的两个数字
OpenJudge NOI 1.13 18:Tomorrow never knows?