文章
23
粉丝
234
获赞
43
访问
173.9k
#include<stdio.h>
int main() {
int n;
scanf("%d", &n);
int a[n][n],b[n][n];
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++)
scanf("%d", &a[i][j]);
}
for (int i = 1; i <= n; i++)
for (int j = 1; j <= n; j++)
b[n - i + 1][j] = a[i][j];
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++)
printf("%d ", b[i][j]);
printf("\n");
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发