Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=int(input())
- mas = []
- temp2 = input().split(" ")
- for i in range(0,a):
- temp = int(temp2[i])
- temp3 = oct(temp)
- tem4 = 0
- for s in range(len(temp3)-1,len(temp3)-4,-1):
- tem4 = temp3[s]
- if (int(tem4)%2!=0 and temp%2==0):
- mas.append(temp)
- print(len(mas))
- mas.sort()
- for i in mas:
- print(i,end=" ")
Advertisement
Add Comment
Please, Sign In to add comment