-->
当前位置:首页 > 题库

PROGRAMMING:Dynamic array (how much memory is required and how much memory is requested)

Luz5年前 (2021-05-10)题库384
Input integer n, then input n integers, and output these n integers in reverse order( Do not define the array, using dynamic memory implementation)
###Input example:
```in
ten
1 2 3 4 5 6 7 8 9 10
```
###Output example:
```out
10 9 8 7 6 5 4 3 2 1
```
###Input example:
```in
fifteen
708 417 427 843 610 838 932 978 189 981 208 618 178 872 576
```
###Output example:
```out
576 872 178 618 208 981 189 978 932 838 610 843 427 417 708
```






answer:If there is no answer, please comment