Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- A = [randint(1, 10000) for i in range(1000)]
- Max = 0
- for i in range(len(A)):
- for j in range(i + 11, len(A)):
- if (A[i] + A[j]) % 2 * 567 == 0:
- Max = max(Max, A[i] + A[j])
- print(Max)
Advertisement
Add Comment
Please, Sign In to add comment