题解 | #序列重组矩阵#
序列重组矩阵
https://www.nowcoder.com/practice/7548f8f5e44c42fa84fb2323d899a966
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main() {
int a, b,arr[10][10];
while (cin >> a >> b) { // 注意 while 处理多个 case
for(int i=0;i<a;i++)
{
for(int j=0;j<b;j++)
{
scanf("%d",&arr[i][j]);
}
}
for(int i=0;i<a;i++)
{
for(int j=0;j<b;j++)
{
printf("%d ",arr[i][j]);
}
printf("\n");
}
}
}
// 64 位输出请用 printf("%lld")

