Colorings and Dominoes
1511E2100· master3s512 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
3 4**oooo*o**oo
Output
144
Sample 2of 4
Input
3 4**oooo****oo
Output
48
Sample 3of 4
Input
2 2ooo*
Output
4
Sample 4of 4
Input
1 4oooo
Output
9
58%
1511E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)