2x2 Determinant

Computer Mathematics Easy 2 views
Back to Questions

Problem Description

Compute determinant of 2x2 matrix.

Input Format

Four integers a b c d (matrix [[a,b],[c,d]]).

Output Format

One integer det.

Sample Test Case

Input:
1 2 3 4
Output:
-2

Constraints

Values fit 64-bit

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next