CEMC

#1
A 0 or 1 is to be placed in each of the nine 1 × 1 squares in the 3 × 3 grid shown so that each row contains at least one 0 and at least one 1, and each column contains at least one 0 and at least one 1. The number of ways in which this can be done is
微信截图_20180611173321.png
\(

\textbf{(A) }126 \\

\textbf{(B) }120 \\

\textbf{(C) }138 \\

\textbf{(D) }102 \\

\textbf{(E) }96 \\

\)