cf/mirror

Colorings and Dominoes

CF
1511E2100· master3s512 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
3 4
**oo
oo*o
**oo
Output
144
Sample 2of 4
Input
3 4
**oo
oo**
**oo
Output
48
Sample 3of 4
Input
2 2
oo
o*
Output
4
Sample 4of 4
Input
1 4
oooo
Output
9
1511E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)