#Lutece1010. 随机数
随机数
Migrated from Lutece 1010 随机数
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
现有不超过个的随机整数,问你其中是否存在恰好出现次的数。
Input
有多组测试数据。输入的第一行是整数,表示测试数据的组数。每一组测试数据只有一行,开始是两个正整数和,该两数表示让你判断随后的个随机整数中是否恰好有出现次的数。每个数后恰有一个空格。其中不超过。
Output
每组输入数据对应输出一行结果。若存在则输出Yes
,否则输出No
。
Samples
2
6 2 8 7 6 2 7 8
7 3 9 8 7 5 3 7 6
Yes
No
Resources
wxiaoping - 2014