@[小小蒟蒻一只](/user/366254)
读入那段改为
```cpp
for (int i=1;i<=n;++i)
{
scanf("%s",a[i]+1);
for (int j=1;j<=n;++j)
{
mp[i][j]=a[i][j]-'0';
}
}
```
by Cripple_Abyss @ 2021-08-30 22:43:18
亲测AC
by Cripple_Abyss @ 2021-08-30 22:43:55
@[Cripple_Abyss](/user/195209) 谢谢
by dxy2020 @ 2021-08-30 22:57:41
@[小小蒟蒻一只](/user/366254) 字符串读入问题,有可能出现很多空格换行之类的
by Cripple_Abyss @ 2021-08-30 23:13:56
建议使用 ```scanf("%s",a);``` 来读入
by Cripple_Abyss @ 2021-08-30 23:14:44
@[Cripple_Abyss](/user/195209) orz%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
by dxy2020 @ 2021-08-30 23:17:13