给定若干种颜色的方块图,求不同颜色区域的总数量。
相同字符且上下左右相连属于同一区域。
输出区域总数。
1≤n,m≤301\le n,m\le 301≤n,m≤30
2 2 ab ba
4
使用您的 www.mathcoding.online 通用账户