当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

5665:Lucky

题目描述
$\ \ \ \ $Chaos August likes to study the lucky numbers.

$\ \ \ \ $For a set of numbers S,we set the minimum non-negative integer,which can't be gotten by adding the number in S,as the lucky number.Of course,each number can be used many times.

$\ \ \ \ $Now, given a set of number S, you should answer whether S has a lucky number."NO" should be outputted only when it does have a lucky number.Otherwise,output "YES".
输入解释
$\ \ \ \ $The first line is a number T,which is case number.

$\ \ \ \ $In each case,the first line is a number n,which is the size of the number set.

$\ \ \ \ $Next are n numbers,means the number in the number set.

$\ \ \ \ 1\le n\le 10^5,1\le T \le 10,0\le a_i \le 10^9$.
输出解释
$\ \ \ \ $Output“YES”or “NO”to every query.
输入样例
1
1
2
输出样例
NO
来自杭电HDUOJ的附加信息
Recommend wange2014

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 BestCoder Round #80

源链接: HDU-5665

最后修改于 2020-10-25T23:24:38+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
2000/1000MS(Java/Others) 65536/65536K(Java/Others)