Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
139903 万骏博 矩阵旋转 C++ Accepted 1 MS 312 KB 325 2025-12-11 19:34:28

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[101][101],n,o[101][101],m; int main(){ scanf("%d%d",&n,&m); for(int i=1;i<=n;i++){ for(int j=1;j<=m;j++){ scanf("%d",&a[i][j]); } } for(int i=1;i<=m;i++){ for(int j=n;j>=1;j--){ printf("%d ",a[j][i]); } printf("\n"); } return 0; }