4942: P4420 [COCI2017-2018#1] Tetris(普及-)

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Input

Output

Sample Input Copy

4 5
aaaa.
.bb..
.bbxx
...xx

Sample Output Copy

2
1
0
0
0

HINT