2x2 Determinant
Computer Mathematics
Easy
2 views
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.
Constraints
Values fit 64-bit
Official Solution
det = a*d - b*c.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!