@[_Remote_](/user/601114) 有没有一种可能,spj 是为了中间一堆空格准备的。
by Eirin_Yagokoro @ 2023-05-07 20:20:44
但是我把场宽改了之后会wa。
@[__dest__ruct__or__](/user/592238)
by Remote_1 @ 2023-05-07 20:21:51
@[_Remote_](/user/601114) 那我不清楚了。
by Eirin_Yagokoro @ 2023-05-07 20:23:20
@[_Remote_](/user/601114) 我的代码经测试,以下两种写法都是正确的。
```cpp
for(int i=1;i<=n;++i) {
for(int j=1;j<=m;++j)
printf("%d ",a[i][j]);
puts("");
}
for(int i=1;i<=n;++i) {
for(int j=1;j<=m;++j)
printf("%-5d ",a[i][j]);
puts("");
}
```
by RP_INT_MAX @ 2023-05-07 20:51:33