|
|||
Distinct CountGiven an array A of N integers, classify it as being Good, Bad, or Average. It is called Good if it contains exactly X distinct integers, Bad if it contains less than X distinct integers, and Average if it contains more than X distinct integers. Input SpecificationThe first line of the input consists of a single integer T, denoting the number of test cases (1 ≤ T ≤ 50). The first line of each test case consists of two space-separated integers, denoting N and X (1 ≤ N, X ≤ 13000). The second line of each test case consists of N space-separated integers, denoting the array elements (1 ≤ Ai ≤ 109). Output SpecificationPrint the required answer for each test case on a new line. Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |