| Code Rush 2025 |
|---|
| Finished |
Appa and Winnie are dogs with very different passions. While Winnie loves drawing, Appa is fascinated by mathematics.
Seeing her love for drawing, Winnie decides to join the Public Art Classes, where the first lesson is to create geometric figures using only '.', '/', and '\', as shown below:
Winnie's drawing. Since Appa does not have the opportunity to join any course, he decides to take Winnie's drawings and calculate the area of the shapes. However, he knows nothing about mathematics, except that each '.' represents a 1×1 unit. So he asks for your help in calculating the area of the shapes Winnie draws.
The first line contains two integers, N and M ($$$2 \leq N, M \leq 100$$$), indicating the width and height of the matrix. Next, M lines of size N will be read, containing the characters '.', '/', and '\'. There will always be a figure for which the area must be calculated.
A single line containing the area of the figure, printed with two decimal places.
14 12....../\.........../..\........./....\......./......\...../........\.../..........\..\........../...\......../.....\....../.......\..../.........\../...........\/......
72.00
| Name |
|---|


