add and substract


Submit solution

Points: 50 (partial)
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem type
Allowed languages
Java 19, Java 8

題目說明

輸入兩個3*3矩陣,輸出其相加後的矩陣以及其相減後的矩陣

輸入

兩個3*3矩陣

輸出

相加後的矩陣 相減後的矩陣

sample input1

1 2 3 4 5 6 7 8 9
2 3 4 5 6 7 8 9 0

sample output1

3 5 7 9 11 13 15 17 9
-1 -1 -1 -1 -1 -1 -1 -1 9

Comments

There are no comments at the moment.