#include #include #include #include #include #include #include #include #include #include #include #include #define m_p make_pair #define p_b push_bakc #define fi first #define se second #define LL long long using namespace std; const int maxn = 100010; int a[maxn]; int n; int main() { //freopen("input.txt","r",stdin); //freopen("output.txt","w",stdout); int tt; scanf("%d",&tt); while (tt--) { int k; scanf("%d%d",&n,&k); for (int i=1; i