AtCoder Beginner Contest 184
翻译中…
Problem Statement
翻译中…
Given is a $2 \times 2$ matrix $A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$.
The determinant of $A$ can be found as $ad-bc$.
Find it.
翻译中…
Constraints
翻译中…
- All values in input are integers.
$-100 \le a, b, c, d \le 100$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
a b
c d
翻译中…
Output
翻译中…
Print the answer as an integer.
翻译中…
样例
Input #1
1 2
3 4
Output #1
-2
The determinant of $\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ is $1 \times 4 - 2 \times 3 = -2$.
Input #2
0 -1
1 0
Output #2
1
Input #3
100 100
100 100
Output #3
0
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。