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

PROGRAMMING:Delete an element (array) at a specified location

Luz5年前 (2021-05-10)题库400
Store 1 ~ 10 integers in an array. Input a position K, delete the k-th element in the array, and output the original array and result array.
###Input format:
k
Position K starts at 0.
###Output format:
If the position K is unreasonable and exceeds the effective value, error will be output
In other cases, first output the original array, and then output the result array.
###Input sample 1:
```in
four
```
###Output sample 1:
```out
1 2 3 4 5 6 7 8 9 10
1 2 3 4 6 7 8 9 10
```
###Input sample 2:
```in
ten
```
###Output sample 2:
```out
error.
```







answer:If there is no answer, please comment