PROGRAMMING:Deletion of array elements
Complete the movement function of array elements: assuming that there are n elements in the array, enter a number x, delete the element at the x position of the array, and advance the following elements one position in turn.
Repeat the deletion several times to get the final result.
###Input format:
The first line contains an integer n (1 < = n < = 100), which represents the number of array elements.
In the second line, enter n array elements, all of which are integers separated by spaces.
In the third line, enter a number k (1 < = k < = 100) to delete K times.
Next, there are k rows, each with a number x, indicating that the x-th element is to be deleted.
###Output format:
Output the array after K times of deletion, separated by spaces between each two elements.
###Input example:
```in
ten
1 2 3 4 5 6 7 8 9 10
four
three
two
four
six
```
###Output example:
```out
1 4 5 7 8 10
```
answer:If there is no answer, please comment
Repeat the deletion several times to get the final result.
###Input format:
The first line contains an integer n (1 < = n < = 100), which represents the number of array elements.
In the second line, enter n array elements, all of which are integers separated by spaces.
In the third line, enter a number k (1 < = k < = 100) to delete K times.
Next, there are k rows, each with a number x, indicating that the x-th element is to be deleted.
###Output format:
Output the array after K times of deletion, separated by spaces between each two elements.
###Input example:
```in
ten
1 2 3 4 5 6 7 8 9 10
four
three
two
four
six
```
###Output example:
```out
1 4 5 7 8 10
```
answer:If there is no answer, please comment