knyazer

Untitled

Mar 20th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. N = int(input())
  2. mx = -1
  3. value = int(input())
  4. for i in range(N - 1):
  5.     old = value
  6.     value = int(input())
  7.     if (value * old) % 2 == 0 and (mx == -1 or (value * old) < mx): mx = value * old
  8.  
  9. print(mx)
Add Comment
Please, Sign In to add comment