Type: Default 1000ms 256MiB

Determinant

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

[ABC184A] Determinant

题目描述

输入四个整数 a,b,c,da,b,c,d ,输出 adbcad-bc 的结果。

输入格式

两行,第一行两个整数 a,ba,b ,第二行两个整数 c,dc,d

输出格式

一个整数表示答案。

样例 #1

样例输入 #1

1 2
3 4

样例输出 #1

-2

样例 #2

样例输入 #2

0 -1
1 0

样例输出 #2

1

样例 #3

样例输入 #3

100 100
100 100

样例输出 #3

0

数据范围

  • 100  a, b, c, d  100-100\ \le\ a,\ b,\ c,\ d\ \le\ 100

20241029集训

Not Attended
Status
Done
Rule
IOI(Strict)
Problem
6
Start at
2024-10-29 19:00
End at
2024-10-29 21:00
Duration
2 hour(s)
Host
Partic.
16