#include<iostream>using namespace std;int main(){int n,m;cin>>n>>m;int arr[n][m];for(int x=0;x<n;x++){for(int y=0;y<m;y++){cin>>arr[x][y];}}for(int x=0;x<m;x++){for(int y=0;y<n;y++){cout<<arr[y][x]<<" ";}cout<<endl;}return 0;}
要重複輸入