cf/mirror

Boolean Function

CF
582E3000· legendary gm4s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
?
2
1 0 1 0 1
0 1 1 0 1
Output
2
Sample 2of 4
Input
(A)?(?)
1
1 1 0 0 0
Output
4
Sample 3of 4
Input
((?)&(?))|((?)&(?))
0
Output
4096
Sample 4of 4
Input
b
1
1 0 1 1 1
Output
1
582E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)