-Code
n = int(input())
a_list = list(map(int, input().split()))
even = len([el for el in a_list if el % 2 == 0])
odd = n - even
print(even * odd)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 4580번 Mad Scientist (0) | 2025.05.01 |
---|---|
[백준/파이썬] 33653번 Search Wizard (0) | 2025.05.01 |
[백준/파이썬] 29575번 Игровой автомат (0) | 2025.04.28 |
[백준/파이썬] 33772번 Wow (0) | 2025.04.27 |
[백준/파이썬] 31496번 자작나무가 없소~ (0) | 2025.04.26 |