cf/mirror

The Moral Dilemma

CF
993F3200· legendary gm1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
2 2 2
and xx nand xx
and xx or xx
Output
1
Sample 2of 3
Input
3 2 2
and xx. nor .xx
and xx nor xx
Output
-1
Sample 3of 3
Input
4 4 5
nor x..x and ..xx and xx.. nand xx..
nand ..xx nor ..xx and xx.. nor ..xx or ..xx
Output
2
993F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)