where is my location(array)
Submit solution
Points:
50 (partial)
Time limit:
1.0s
Memory limit:
256M
Authors:
Problem type
Allowed languages
Java 19, Java 8
題目說明
輸入一整數表陣列長度,並輸入相對應數量的隨機整數,最後輸入個別整數所在位置,輸出排序完的數列
輸入
陣列長度、相對應數量的隨機整數、個別整數所在位置
輸出
排序完後的數列
sample input1
3 1 2 3 2 1 0
sample output1
3 2 1
//1: 位置2; 2: 位置1; 3: 位置0
sample input2
5 3 5 1 2 3 2 4 3 1 0
sample output2
3 2 3 1 5
Comments