clear repeat integer


Submit solution

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

Authors:
Problem types
Allowed languages
Java 19, Java 8

題目說明

給定一陣列,並輸出清除重複值的陣列。

輸入

整數(陣列大小),陣列內的值

輸出

清除重覆值的陣列

sample input1

3 1 1 2

sample output1

1 2

sample input2

5 1 2 3 4 5

sample output2

1 2 3 4 5

Comments


  • 1
    11010044  commented on Nov. 27, 2025, 2:16 p.m. edited

    題目沒有明確說明不重複的值輸出順序要按照值的大小排序還是使用者輸入的順序排序,公開測資都是照著值的大小順序輸入,容易誤導。