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