reverse output
Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
256M
Authors:
Problem type
Allowed languages
Java 19, Java 8
題目說明
程式輸入一個長度k,以及k個數字,最後以相反的方向輸出這k個數字
輸入格式
長度k,以及k個數字
輸入值範圍
輸入數字都是整數,最小值為-1000,最大值為1000。k大於等於1。
輸出
反過來輸出的k個數字
sample input1
3 10 11 12
sample output1
12 11 10
sample input2
2 2 3
sample output2
3 2
Comments