알고리즘 문제 풀기/Codeup
Codeup 1268 - n개의 수 중 짝수의 개수
bug_maker
2019. 2. 1. 09:24
http://codeup.kr/problem.php?id=1268
Codeup 1268 - n개의 수 중 짝수의 개수
n = int(input())
numbers = list(map(int, input().split()))
count_even = 0
for number in numbers:
if number % 2 == 0:
count_even += 1
print(count_even)