练习专区

今天的一小步就是明天的一大步
Problem 1393 倒置类......OOP
Accepted: 1   Total Submit: 6
Time Limit: 1000ms   Memory Limit: 30720KB
Description
声明一个类Rearray类继承1391题中的Array类,在该类中定义一个函数,具有对数组数据进行倒置的功能。
Input
输入多组数据,每组数据两行,第一行n,表示数组长度,第二行n个整数,表示数组中的数。
Output
输出数组中数倒置后的数据。
Sample Input
10
1 2 3 4 5 6 7 8 9 0
3
23 56 41
Sample Output
0 9 8 7 6 5 4 3 2 1
41 56 23
Hint
提交     返回