We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Linear Algebra Foundations
- Linear Algebra Foundations #3- Matrix Multiplication
- Discussions
Linear Algebra Foundations #3- Matrix Multiplication
Linear Algebra Foundations #3- Matrix Multiplication
Sort by
recency
|
9 Discussions
|
Please Login in order to post a comment
Why is the platform not providing the INPUT/OUTPUT format they are looking for? Is the goal to test whether one can multiply a 2x2 matrix, or to test whether one knows how to parse INPUT data from commande line ?
Be specific!
if name == 'main': ## Read code fron STDIN n = 2 # Number of rows/columns matrix1 = [list(map(int, input().split())) for _ in range(n)] matrix2 = [list(map(int, input().split())) for _ in range(n)]
Python3:
or