ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1519. Formula 1

some tests
Posted by LeTim 17 Apr 2025 15:07
Input
2 2
..
..

Output
1


Input
12 12
************
************
************
******..****
******..****
************
************
************
************
************
************
************

Output
1


Input
2 4
....
****

Output
0


Input
4 2
.*
.*
.*
.*

Output
0


Input
2 5
..*..
..*..

Output
0


Input
5 2
..
..
**
..
..

Output
0


Input
12 12
............
............
............
............
............
............
............
............
............
............
............
...........*

Output
0


Input
6 6
......
......
..**..
..**..
......
......

Output
14


Input
6 6
......
......
......
......
......
......

Output
1072


Input
12 12
............
............
............
............
............
............
............
............
............
............
............
............

Output
1076226888605605706