Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def erase_odd(arr):
- min_elem = min(arr)
- min_index = arr.index(min_elem)
- for i in range(len(arr) - 1, min_index, -1):
- if arr[i] % 2 == 1:
- del arr[i]
- n = int(input())
- arr = [int(x) for x in input().split()]
- erase_odd(arr)
- print(' '.join(map(str, arr)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement