轮换 #include<iostream> #include<cstdio> #include<cstring> #define maxn 1010 using namespace std; int n,p,k,a[maxn],b[maxn],op[maxn][maxn],pos[maxn]; int main(){ freopen("rotate.in","r",stdin);freopen("rotate.out&q…
星空 #include<iostream> #include<cstdio> using namespace std; int n,m; int main(){ freopen("star.in","r",stdin);freopen("star.out","w",stdout); ){ scanf("%d%d",&n,&m); &&m==); ==)…