#D. 求细胞数量

    Type: Default 1000ms 128MiB

求细胞数量

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

说明

一矩形阵列由数字09组成,数字19代表细胞,细胞的定义为沿细胞数字上下左右还是细胞数字则为同一细胞,求给定矩形阵列的细胞个数。

输入格式

  用空格隔开的整数m,n(m行,n列)矩阵(1<=m,n<=100)

输出格式

  细胞的个数。

样例

4 10
0234500067
1034560500
2045600671
0000000089
4

竞赛班—搜索(2)

Not Claimed
Status
Done
Problem
5
Open Since
2024-11-30 0:00
Deadline
2024-12-8 23:59
Extension
24 hour(s)