A:排列简单题,我们发现m不大,我们暴力模拟m次翻转过程。然后我们针对一次的变换求出倍增数组,倍增即可。复杂度:O(nm+nlogk)代码: #include<bits/stdc++.h> #define LL long long using namespace std; const int N=1e5+5; struct Range{int l,r;}a[15]; int n,m,k,id[N],ans[N],f[N][31]; int main(){ scanf("%d%d%d",&n,&m,&k); for(int ...