JZOJ【4817】. 【NOIP2016提高A组五校联考4】square
Description
Input
Output
Sample Input
3 4
1 1 0 1
0 1 1 0
0 1 1 0
5
1 1 2 3
2 1 3 2
3 2 3 4
1 1 3 4
1 2 3 4
Sample Output
1
1
1
2
2
Data Constraint
The Solution很容易想到一个递推式。
设
原创
2016-10-14 19:57:23 ·
425 阅读 ·
0 评论