Two black cells belong to the same connected component when one can travel between those two black cells by repeatedly moving to an adjacent black cell.
这句是什么意思啊……
我打完了样例3过不去才发现题读错了