E题题解,希望大家能开心做题! #include<bits/stdc++.h> using namespace std; const int N =1e6+10; int a[N],h[N],ans[N]; int n,m,k,b; int main() { int t;cin>>t; while(t--) { memset(ans,0,sizeof(ans)); //初始化答案数组 cin>>n>>m>>k>>b; for(int i=1;i&l...