#3145. Determinant

0

Determinant

Determinant

题目描述

Given is a 2×22 \times 2 matrix $A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$.
The determinant of AA can be found as ad−bcad-bc.
Find it.

输入格式

Input is given from Standard Input in the following format: aa bb cc dd

输出格式

Print the answer as an integer.

1 2
3 4
-2
0 -1
1 0
1
100 100
100 100
0

提示

All values in input are integers. −100≤a,b,c,d≤100-100 \le a, b, c, d \le 100The determinant of $\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ is 1×4−2×3=−21 \times 4 - 2 \times 3 = -2.

标签: AtCoder|abc184A

来源

AtCoder|abc184A