import java.util.*; import java.io.*; import java.math.*; import java.util.regex.Pattern; class Main{ static void solve(){ int n = ni(); long k = nl(), x = nl(); long [][] dp = new long[n+1][2]; long [] A = LongArray(n); for(long [] v : dp) Arrays.fill(v,Lnf); dp[0][0] = 0; dp[0][1] = 0; 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