2x2 Matrix Multiply
Computer Mathematics
Medium
2 views
Problem Description
Multiply two 2x2 matrices.
Input Format
Eight integers a11 a12 a21 a22 b11 b12 b21 b22.
Output Format
Four integers of product row-wise.
Constraints
Values fit 64-bit
Official Solution
Compute c11=a11*b11+a12*b21, c12=a11*b12+a12*b22, c21=a21*b11+a22*b21, c22=a21*b12+a22*b22.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!