mutual number
Submit solution
Points:
50 (partial)
Time limit:
1.0s
Memory limit:
64M
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
1 2
sample input2
-1 1 -2 2 -3 3 -4 4 -5 5
sample output2
無共同數值
Comments