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