我代码中写成下面这样会 T。
Matrix () { memset(a, 0, sizeof a); }
但是改成下面这样会 WA。
Matrix () { fos(i, 1, n) fos(j, 1, n) a[i][j] = 0; }
完整代码放二楼,下面这个数据是我改成下面这种的话会 WA 的点
input:
3 4 1 2 0 3 3 1 2 1 0 1 3 3
3 4
1 2 0
3 3 1
2 1 0
1 3 3
answer:
5
the output of second code :
4