UVA871 Counting Cells in a Blob

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=812 [PDF](https://uva.onlinejudge.org/external/8/p871.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA871/62d3c0ff259b7e1c21741b945b8bf7f71340aa2d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA871/92172b51a583a7826882daf273478b0f85dc9173.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA871/e8e021cdf56af965a44e8016556e973ff7624cdc.png)