Problem:


Score : 200 points

Problem Statement

We have N squares assigned the numbers 1,2,3,\ldots,N. Each square has an integer written on it, and the integer written on Square i is a_i.

How many squares i satisfy both of the following conditions?

The assigned number, i, is odd.

The written integer is odd.

Constraints

All values in input are integers.

1 \leq N, a_i \leq 100

Input

Input is given from Standard Input in the following format:

N
a_1 a_2 \cdots a_N

Output

Print the number of squares that satisfy both of the conditions.

Sample Input 1

5
1 3 4 5 7

Sample Output 1

2

Two squares, Square 1 and 5, satisfy both of the conditions.

For Square 2 and 4, the assigned numbers are not odd.

For Square 3, the written integer is not odd.

Sample Input 2

15
13 76 46 15 50 98 93 77 31 43 84 90 6 24 14

Sample Output 2

3



Sample input:
5
1 3 4 5 7


Sample output:
2

Submission status: Wrong Answer

Solution code:
N = int(input())
an = map(int, input().split(" "))
ans = 0
for i, ai in enumerate(an):
    print(i+1, ai)
    if (i+1) % 2 == 1 and ai % 2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
N, *A = map(int, open(0).read().split())
cnt = 0
for i in range(1, N, 2):
    if A[i] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
inpl = lambda: list(map(int,input().split()))
N = int(input())
A = inpl()
print(sum(A[i]%2 for i in range(1,N,2)))

Submission status: Wrong Answer

Solution code:
N = int(input())
a = [int(i) for i in input().split()]
h = 0
for s in range(N) :
  if s % 2 == 1:
    if a[s] % 2 == 1:
      h += 1
print(h)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    a = list(map(int, input().split()))

    ans = 0
    for i, num in enumerate(a):
        if (i+1)%2 == 1: continue
        if num%2 ==1: ans += 1
    print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(1,N):
    if i % 2 != 0 and a[i] % 2 != 0:
        count += 1
    else:
        pass
    
print(count)

Submission status: Wrong Answer

Solution code:
N=int(input())
input=input()

masu=[int(r) for r in input.split()]
ans=[]

for i in range(1,N+1):

    if masu[i-1]%2==1 and (i-1)%2==1:
        ans.append(i)

print(len(ans))

Submission status: Wrong Answer

Solution code:
N = int(input())
an = map(int, input().split(" "))
ans = 0
for i, ai in enumerate(an):
    if i % 2 == 1 and ai % 2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

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