#AT1685. A - Determinant
A - Determinant
A - 行列式
分数:$100$ 分
问题描述
给定一个 $2 \times 2$ 矩阵 $A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$。
矩阵 $A$ 的行列式可以通过计算 $ad-bc$ 得到。
请计算行列式。
约束条件
- 输入中的所有值均为整数。
- $-100 \le a, b, c, d \le 100$
输入
从标准输入中按以下格式给出输入:
输出
将结果以整数形式输出。
1 2
3 4
-2
矩阵 $\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ 的行列式为 $1 \times 4 - 2 \times 3 = -2$。
0 -1
1 0
1
100 100
100 100
0