#include #include #include #include #include using namespace std; long long a[100005]; long long d[100005]; bool cmp(long long a,long long b) { return a>b; } int main(void) { //freopen("in","r",stdin); int t; cin>>t; while(t--) { int n,k; cin>>n>>k; for(int i=0;i