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 = -10**9
- for i in range(len(A)):
- for j in range(i + 1, len(A)):
- if (A[i] * A[j]) % 350 == 0 and A[i] > A[j]:
- Max = max(Max, A[i] * A[j])
- print(Max)
Advertisement
Add Comment
Please, Sign In to add comment