Run ID:77633
提交时间:2024-06-14 20:47:54
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main(){ int n,m,k=0,j=0,x=0,c=0; cin>>m>>n; int v[101][101]; for(k=0;k<n;k++){ for(j=0;j<m;j++) cin>>v[k][j];} for(k=0;k<n;k++){ cout<<endl; for(j=0;j<m;j++) cout<<v[j][k]<<" ";} return 0; }