#include <iostream>
using namespace std;
int main()
{
int row=0,column=0;
cin >> row >> column;
int data[100][100];
for (int i = 0; i < row; i++)
{
for (int j = 0; j< column; j++)
{
cin >> data[i][j];
}
}
for (int b = 0; b< column; b++)
{
for (int a = 0; a < row; a++)
{
cout << data[a][b] << " ";
}
cout << endl;
}
return 0;
}
自己測試過幾次 應該沒問題
網頁測出來卻說只能輸出三行?