import java.util.*; import java.io.*; import java.math.*; import java.util.regex.Pattern; class Main{ static void solve(){ int N = ni(), W = ni(); long [][] dp = new long[N+1][W+1]; long [][] ct = new long[N+1][W+1]; int [] w = new int[N]; long [] v = new long[N]; ct[0][0] = 1; for(int i=0;i counter(int [] A) { HashMap count = new HashMap<>(); for(int i=0;i counter(long [] A) { HashMap count = new HashMap<>(); for(int i=0;i