import java.util.Scanner; public class Wangyi32 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int t = Integer.parseInt(s.nextLine()); while (t > 0) { int k = s.nextInt(); int m = s.nextInt(); int[] arr = new int[30]; for (int j = 0; j < m; j++) { int val = s.n...