#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

现有不超过10001000个的随机整数,问你其中是否存在恰好出现kk次的数。

Input

有多组测试数据。输入的第一行是整数T0<T1000T(0 < T \leq 1000),表示测试数据的组数。每一组测试数据只有一行,开始是两个正整数nnkk,该两数表示让你判断随后的nn个随机整数中是否恰好有出现kk次的数。每个数后恰有一个空格。其中nn不超过10001000

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