#include<bits/stdc++.h> #define xs first #define ys second #define int long long using namespace std; typedef pair<int,int> PII; typedef pair<int,pair<int,int>> PIPII; const int N=2e5+10,mod=1e9+7; int a[N]; int T,n,m,k; void solve() { cin>>n>>m; int sum=0,mi...