Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = int(input())
- mx = -1
- value = int(input())
- for i in range(N - 1):
- old = value
- value = int(input())
- if (value * old) % 2 == 0 and (mx == -1 or (value * old) < mx): mx = value * old
- print(mx)
Add Comment
Please, Sign In to add comment