Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. R = -1
  3. nch = 0
  4.  
  5. for i in range(n):
  6.     x = int(input())
  7.     if x % 2 != 0:
  8.         nch += 1
  9. R = nch*(nch - 1) // 2
  10. print(R)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement