The problem is to determine the number of spanning trees in $K_{r,s}$. The Matrix tree theorem states that the answer is the determinant of the matrix $M_{ii}$, where $M_{ii}$ is the matrix obtained from deleting the first row and the first column of $X-A$, where $X$ is the diagonal matrix of degree of each vertex and $A$ is the adjacency matrix of $K_{r,s}$.
I have the desired matrix below, denoted as $M$, and its determinant is the answer of the graph theory question. However, I have difficulty in computing its determinant. The upper left corner is an $(r-1) \times (r-1)$ diagonal matrix with diagonal entry $s$, and the lower right corner is an $s \times s$ diagonal matrix with diagonal entry $r$. All the other entries are $-1$.
Though the matrix looks rather harmonic, I have no idea how to compute its determinant when $r$ and $s$ are arbitrary natural numbers. I appreciate any help from you guys.

You can grind it out using row and column operations, to end up with an upper diagonal matrix, from which the determinant is the product of the diagonals, or a quicker way is to use the formula \begin{align} \text{det} \begin{pmatrix} A & B \\ C & D \end{pmatrix} = \text{det}(A) \text{det}(D - CA^{-1}B) \end{align}
which is not so hard to compute, as A is diagonal, so the inverse has a nice form. I think the answer should be $r^{s-1}s^{r-1}$.