Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- R = -1
- nch = 0
- for i in range(n):
- x = int(input())
- if x % 2 != 0:
- nch += 1
- R = nch*(nch - 1) // 2
- print(R)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement