Farz0l1x

Untitled

May 28th, 2023
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. from random import randint
  2. A = [randint(1, 1000) for j in range(100)]
  3. Max = 0
  4. for i in range(len(A)):
  5. for j in range(i + 11, len(A)):
  6. if A[i] + A[j] % 2 == 0 and A[i] + A[j] & 567 == 0:
  7. Max = max(A[i] + A[j], Max)
Advertisement
Add Comment
Please, Sign In to add comment