Solution (source code)

= Solution

On an <eigenvector> of $A$ with <eigenvalue> $\lambda$, the <linear operator> $B=I-A$ has <eigenvalue> $1-\lambda$. Therefore
$$
\boxed{\operatorname{spec}(B)\subseteq\{0,1\}.}
$$
The multiplicities are exchanged: if the <matrix rank> of $A$ is $r$, then $B$ has $n-r$ copies of $1$ and $r$ copies of $0$. Again, a value with zero multiplicity is absent.