Problem Statement
Write a program to subtract two matrices (A - B) of the same dimensions. Input format is dimensions R C, then Matrix A, then Matrix B.
DEMO-C-32 โข Programming in C
Write a program to subtract two matrices (A - B) of the same dimensions. Input format is dimensions R C, then Matrix A, then Matrix B.
Input: Dimensions N M followed by the matrix elements.
Output: The formatted result as specified.
Submit runs every public testcase in this browser. Results and code never leave this device.
2 2 5 5 4 9 4 7 2 8
1 -2 2 1
3 3 7 7 9 1 9 4 8 7 0 3 0 0 1 4 3 4 7 0
4 7 9 0 5 1 4 0 0
3 4 7 1 7 0 3 2 2 7 5 2 3 4 6 6 3 1 6 0 2 5 6 7 6 2
1 -5 4 -1 -3 2 0 2 -1 -5 -3 2
4 3 0 3 3 0 5 8 2 7 8 0 9 8 8 5 0 8 4 8 6 4 2 7 4 4
-8 -2 3 -8 1 0 -4 3 6 -7 5 4
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question