The Seasonal War
题意翻译
给出一个$n\times n$的矩阵,输出有多少个1组成的不相连的块,每个位置和周围八个位置是相连的 (就是求关于$'1'$的八连通块)
题目描述
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=288
[PDF](https://uva.onlinejudge.org/external/3/p352.pdf)
![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA352/11a8472ae317bba339bab9c8d1a01e567fd06a62.png)