给定一个序列,你可以在序列中任取 4个数 a,b,c,d(可以重复选取),问是否有一种选择满足:a+b+c=d。
4
1 8 20 90
No
输入:
4
1 2 3 4
输出:
Yes
Anything about this OnlineJudge, Please Contact Administrator. Click add QQ
OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap
Copyright 2016 ACM算法攻关部cnt: 42548
关于网站改版