A
B
C
output
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
0
1
0
1
0
1
1
0
0
1
1
1
1
The expression is "(not A and B and not C) or (A and not B and not C) or (A and B and C)".
A
B
output
0
0
0
0
1
1
1
0
1
1
1
0
A
B
C
output
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
1
1
0
0
0
1
0
1
1
1
1
0
1
1
1
1
1
00101
01010
10100
10000
10100
11110