#include<iostream>
#include<vector>
using namespace std;
int main()
{
int row, column;
cin >> row >> column;
vector<vector<int> > a(row, vector<int>(column));
for (int j = 0; j < row; j++)
{
for (int k = 0; k < column; k++)
cin >> a[j][k];
}
for (int j = 0; j < column-1; j++)
{
for (int k = 0; k<=row; k++)
{
cout << a[j][k]<<" ";
}
cout << endl;
}
return 0;
}
数组转换
最新推荐文章于 2024-02-03 11:47:12 发布