题解来啦!!
2024-07-12 20:26:39
发布于:浙江
1阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n ,m;
cin >> n >> m;
int a[110][110];
for (int i = 1 ; i <= n ; i++){
for (int j = 1 ; j <= m ; j++){
cin >> a[i][j];
}
}
for (int i = 1 ; i <= m ; i++){
for (int j = 1 ; j <= n ; j++){
cout << a[j][i] << " ";
}
cout << "\n";
}
return 0;
}
这里空空如也
有帮助,赞一个