SSS_Krut

Задача 836(PythonEd)

Aug 4th, 2021
668
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=int(input())
  2. mas = []
  3. temp2 = input().split(" ")
  4. for i in range(0,a):
  5.     temp = int(temp2[i])
  6.     temp3 = oct(temp)
  7.     tem4 = 0
  8.     for s in range(len(temp3)-1,len(temp3)-4,-1):
  9.         tem4 = temp3[s]
  10.     if (int(tem4)%2!=0 and temp%2==0):
  11.         mas.append(temp)
  12. print(len(mas))
  13. mas.sort()
  14. for i in mas:
  15.     print(i,end=" ")
RAW Paste Data