Problem:

D: 忖度 (Surmise)

とある双子は、偶数が好きである。

$N$ 個の整数 $A_1, A_2, A_3, \dots, A_N$ の中に偶数がいくつあるか数えよ。

入力

1 行目には整数 $N$ が与えられる。

2 行目には $N$ 個の整数 $A_1, A_2, A_3, \dots, A_N$ が空白区切りで与えられる。

出力

偶数の個数を出力せよ。ただし、最後に改行を入れること。

制約

    
$N$ は $1$ 以上 $100$ 以下の整数

    
$A_1, A_2, A_3, \dots, A_N$ は $1$ 以上 $100$ 以下の整数

入力例1

5
4 3 5 2 6

出力例1

3

$A_1 = 4$、$A_4 = 2$ と $A_5 = 6$ が偶数です。よって、偶数の個数は $3$ つです。

入力例2

3
2 2 2

出力例2

3

同じ数でも、$A_1, A_2, A_3, \dots, A_N$ の中の位置が違うのであれば、別のものとしてカウントします。



Sample input:
5
4 3 5 2 6


Sample output:
3

Submission status: Accepted

Solution code:
N=int(input())
A=list(map(int,input().split()))
ANS=0
for i in range(N):
    if A[i]%2==0:
        ANS+=1
print(ANS)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
r = 0
for j in a:
  if j % 2 == 0:
    r += 1
print(r)

Submission status: Accepted

Solution code:
N = int(input())
A = [int(x)%2 for x in input().split()]
ans = N - sum(A)
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int,input().split()))

for i in a:
    n -= i%2
print(n)

Submission status: Accepted

Solution code:
input();print(sum([1 for i in list(input().split()) if i[-1] in "02468"]))

Submission status: Accepted

Solution code:
_ = input()
A = map(int, input().split())
 
print(len([x for x in A if x % 2 == 0]))

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int,input().split()))
 
for i in a:
    n -= i%2
print(n)

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int, input().split()))
c=0
for i in a:
  if i%2==0:
    c+=1
print(c)

Submission status: Accepted

Solution code:
n=int(input())
ls=list(map(int,input().split()))
ans=0

for i in range(n):
    if ls[i]%2==0:
        ans+=1
print(ans)

Submission status: Accepted

Solution code:
_ = input()
A = map(int, input().split())

print(len([x for x in A if x % 2 == 0]))

Submission status: Accepted

Solution code:
n = int(input())
a = [int(_) for _ in input().split()]
cnt = 0
for i in a:
	if i % 2 == 0:cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans=0
for i in a:
    if i%2==0:ans+=1
print(ans)

Submission status: Accepted

Solution code:
n = int(input())
li = list(map(int,input().split()))
cnt = 0
for i in li:
    if i % 2 == 0:
        cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
n = input()
print(len(list(filter(lambda x:x%2==0, map(int,input().split())))))

Submission status: Accepted

Solution code:
n = input()
a = [int(i)%2 for i in input().split()]
print(a.count(0))

Submission status: Accepted

Solution code:
input();print(sum(map(lambda x:(int(x)-1)%2,input().split())))

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
r = 0
for j in a:
  if a % 2 == 0:
    r += 1
print(r)