add array
Submit solution
Points:
50 (partial)
Time limit:
1.0s
Memory limit:
256M
Authors:
Problem type
Allowed languages
Java 19, Java 8
題目說明
請輸入十個整數,前五個數及後五個數分別為兩個不同的陣列,請將兩陣列同位置的數相加成新的陣列並輸出
輸入限制: 整數(int) 輸入範圍: -10000 到 10000
輸入
十個整數
輸出
相加後的陣列
sample input1
1 2 3 4 5 6 7 8 1 2
sample output1
7 9 11 5 7
sample input2
-1 1 -2 2 -3 3 -4 4 -5 5
sample output2
2 -3 2 -3 2
Comments