Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chet = 0
- nechet = 0
- n = int(input())
- m = [int(input()) for i in range(n)]
- for i in list(m):
- if i % 2 == 1:
- nechet = max(i, nechet)
- else:
- chet = max(i, chet)
- print(chet*nechet)
Advertisement
Add Comment
Please, Sign In to add comment