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())
A_list = list(map(int,input().split()))
count = 0

for i in range(N):
    if i % 2 == 1 and A_list[i] % 2 == 1:
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = [int(x) for x in input().split()]

count = 0

for x in range(N):
    if (x % 2 == 1) and (a[x] % 2 == 1):
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt = 0

for i in range(N):
    if i %2 == 1 and list[i] %2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
def main():
    N= int(input())
    a = list(map(int,input().split()))
    cnt = 0
    for i in range(1,N,2):
        if a[i] % 2 == 1:
            cnt += 1
    print(cnt)
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

ans = 0
for aindex, a in enumerate(alist):
    if aindex % 2 != 0 and a % 2 != 0:
       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(n):
    if (i % 2 == 1 and a[i] % 2 == 1):
        count += 1
print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())
data = list(map(int, input().split()))

data = data[1::2]

cnt = 0

for i in data:
  if i % 2 == 1:
    cnt += 1
    
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0

for i in range(N):
    if i % 2 != 0:
        if a[i] % 2 !=0:
            count += 1

print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
#a = [list(map(int, list(input()))) for i in range(N + 1)]
# L, R, d = map(int, input().split())
cnt = 0
for i in range(0, N, 2):
    print(i)
    if a[i] % 2 != 0:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    no = int(input())
    maths = map(int,input().split())
    
    count = 0
    for index,math in enumerate(maths):
        if index % 2==1 and math %2==1:
            count+=1
    print(count)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
nombres = [int(x) for x in input().split()]
k = 0
for indexe,nombre in enumerate(nombres):
    if (indexe%2 == 1 and nombre%2 == 1):
        k += 1
print(k)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 0
for i, ele in enumerate(ls):
    print(i+1, ele)
    if (i+1)%2 != 0:
        if ele%2 != 0:
            ans += 1
print(ans)

Submission status: Wrong Answer

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

ans  = 0
for i in range(N):
    if i%2 == 0:
        continue
    if a[i]%2 == 0:
        continue
    ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#import numpy as np
#import math
#from decimal import *
#from numba import njit

#@njit
def main():
    N = int(input())
    a = list(map(int, input().split()))

    count = 0
    for i in range(N):
        if i%2 == 1 and a[i]%2 == 1:
            count += 1

    print(count)
    
main()

Submission status: Wrong Answer

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

sum([ai % 2 for ai in a[::2]])

Submission status: Wrong Answer

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

ans = 0
for i in range(len(a)):
    if ((i % 2) == 0):
        continue
    if ((a[i] % 2) != 0):
        ans += 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
li = list(map(int,input().split()))
coun=0
for i,h in enumerate(li):
  if i+1 % 2 == 1 and h % 2 == 1:
    coun+=1
print(coun)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-


N = input()
del N
I1 = input().split()

i = 0

for a in range(len(I1)):
    if (int(I1[a]) * a)%2 == 1:
        i += 1

print(i)

Submission status: Wrong Answer

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

ans = 0
for i in range(N):
    if a[i] % 2 == 1 and i % 2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input()) #1行目のNを取得する
A = list(map(int,input().split())) 

result = 0

for i in range(N):
    if i % 2 == 1 and A[i] % 2 == 1:
        result += 1

print(result)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int, input().split(" ")))
c = 0
for i in range(len(a)):
  if a[i] % 2 == 1 and i % 2 == 1:
    c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = [int(x) for x in input().split()]

C=0

for i in range(N):
    if i%2!=0:
        if a[i]%2!=0:
            C+=1

print(C)

Submission status: Wrong Answer

Solution code:
n = int(input())
count = 0
arr = [int(i) for i in input().split()]
for i in range(n):
    if i % 2 == 1 and arr[i] % 2 == 1:
        count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
nums = [int(e) for e in input().split()]

count=0
for i in range(N):
    if i%2==1:
        if nums[i]%2==1:
            count=count+1

print(count)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
"""エイシング プログラミング コンテスト 2020: B - An Odd Problem
https://atcoder.jp/contests/aising2020/tasks/aising2020_b
"""


def main():
    N = int(input())
    As = list(map(int, input().split()))

    ans = 0
    for i in range(N):
        if i % 2 != 0 and As[i] % 2 != 0:
            ans += 1
    print('{}'.format(ans))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
a_i = map(int, input().split())
count = 0
for idx, number in enumerate(a_i):
  if idx % 2 != 0 and number % 2 != 0:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
cnt = 0

for i in range (N):
  if i % 2 != 0:
    if a[i] %2 != 0:
      cnt += 1
      
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,*a=map(int,open(0).read().split())
print(len([x for x in a if (x%2!=0 and (a.index(x)+1)%2!=0)]))

Submission status: Wrong Answer

Solution code:
def main():

    N = int(input())
    A = [int(i) for i in input().split()]
    ans = 0
    for v in A[0::2]:
        if v % 2 == 1:
            ans += 1
            print(v)

    print(ans)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

la = a[1::2]
ans = 0

for i in la:
    if i%2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
ar = list(map(int, input().split()))

cnt = 0
for i in range(N):
    if i % 2 == 1 and ar[i] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

a = [a[i] for i in range(n) if i%2==1 and a[i]%2==1]
print(len(a))

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
count = 0

for i in range(1, N, 2):
    if a[i] % 2 == 1:
        count += 1

print(str(count))

Submission status: Wrong Answer

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

ans = 0
for i in range(1,N,2):
    if a[i]%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, 2):
  if a[i] % 2 == 1:
    
    count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
s = list(map(int, input().split()))

count = 0

for i in range(N):
  if (i%2 == 1) and (s[i]%2 == 1):
    count = count + 1

print(count)

Submission status: Wrong Answer

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

counter = 0
for i in range(N):
    checker_1 = i % 2 == 1
    checker_2 = A[i] % 2 == 1
    if checker_1 & checker_2:
        counter += 1
print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3
from collections import defaultdict, deque
from heapq import heappush, heappop
from itertools import permutations
import sys
import math
import bisect

def LI(): return [int(x) for x in sys.stdin.readline().split()]


def I(): return int(sys.stdin.readline())


def LS(): return [list(x) for x in sys.stdin.readline().split()]


def S():
    res = list(sys.stdin.readline())
    if res[-1] == "\n":
        return res[:-1]
    return res


def IR(n):
    return [I() for i in range(n)]


def LIR(n):
    return [LI() for i in range(n)]


def SR(n):
    return [S() for i in range(n)]


def LSR(n):
    return [LS() for i in range(n)]


sys.setrecursionlimit(1000000)
mod = 1000000007


def solve():
    n = I()
    a = LI()
    count = 0
    for i in range(n):
        if i % 2 != 0 and a[i] % 2 != 0:
            count += 1
    print(count)
    return


if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

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

c = 0
for i in range(n):
  if i % 2 == 1 and lst[i] % 2 == 1:
    c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
li = list(map(int,input().split()))
coun=0
for i,h in enumerate(li):
  if i % 2 == 1 and h % 2 == 1:
    coun+=1
print(coun)

Submission status: Wrong Answer

Solution code:
n = int(input())
nums = list(map(int, input().split()))
count = 0

for i in range(n):
    if i % 2 != 0 and nums[i] % 2 != 0:
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
total = 0
for i in range(len(a)):
    if a[i]%2==1 and i%2==1:
        total += 1
print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-


N = input()
del N
I1 = input().split()

i = 0

for a in range(len(I1)):
    if int(I1[a]) * a % 2 == 1:
        i += 1

print(i)

Submission status: Wrong Answer

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

cnt=0
n=0
for i in lis:
    if (i)%2 != 0 and n%2 != 0:
        cnt += 1
    n += 1
    print(n)
print(cnt)

Submission status: Wrong Answer

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush
from bisect import bisect_left,bisect_right 
import sys,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

n = inp()
a = inpl()
res = 0
for i,x in enumerate(a):
    if i%2 and x%2:
        res += 1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int,input().split()))

ans = 0

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

print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = list(map(int,input().split()))

c = 0
for i in range(n):
    if i % 2 == 1 and a[i] % 2 == 1:
        c += 1

print(c)

Submission status: Wrong Answer

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

for i in range(n):
  if(i%2!=0):
    if(a[i]%2!=0):
      s+=1
print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

odd = a[1::2]
ans = 0
for i in range(len(odd)):
    if odd[i]%2 == 1:
        ans = ans + 1

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
N = int(input())
a = list(map(int, sys.stdin.readline().strip().split()))

ans = 0
for i in range(1, N, 2):
    if a[i]%2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0
a = list(map(int, input().split()))

for i in range(N):
    if a[i] % 2 != 0 and i % 2 != 0:
        ans+=1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
A=list(map(int,input().split()))
ans=0

for i in range(N):
    if i % 2==1 and A[i] %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(0,N):
    if i % 2 == 1:
        if a[i] % 2 == 1:
            count = count+ 1

print(count)

Submission status: Wrong Answer

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

for x in range(0, len(a)):
    if x % 2 == 1 and a[x] % 2 == 1:
        count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans = 0

Line = [int(s) for s in input().split()]

for i,x in enumerate(Line):
    if i % 2 == 1:
        # print(x)
        if x % 2 == 1:
            ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i, k in enumerate(a):
    if i % 2 == 1 and k % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
s = list(map(int, input().split()))

count = 0

for i in range(len(s)):
  if (i%2 == 1) and s[i]%2 == 1:
    count = count + 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
arr=list(map(int,input().split()))
c=0
for i in range(n):
  if i%2!=0 and arr[i]%2!=0:
    c+=1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0
for i,a in enumerate(A):
    if a % 2 == 1 and i %2 == 1:
        count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt = 0
for i in range(N):
	if (i % 2 != 0) and (a[i] % 2 != 0):
		cnt += 1

print(cnt)

Submission status: Wrong Answer

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

ans = 0
for i in range(N):
    if A[i] % 2 == 1 and i % 2 == 1:
        ans += 1

print(ans)

Submission status: Wrong Answer

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

for i in range(1, n, 2):
    if a_list[i] % 2 == 1:
        ans += 1

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

a=[0]*N
a=list(map(int,input().split()))
ans=0
for i in range(1,N+5,2):
    if(N-1<i):
        break
    if(a[i]%2==1):
        ans=ans+1
print(ans)

Submission status: Wrong Answer

Solution code:
##a = int(stdin.readline().rstrip())
##b, c = [int(x) for x in stdin.readline().rstrip().split()]
##s = stdin.readline().rstrip()
##a = list(set(b))  重複を削除
##a = list(map(int,[int(x) for x in stdin.readline().rstrip().split()])) a[0, 1, 2, ...]
##a = [[0] * 2 for _ in range(n)]  a[0,0]
##v = [s[i: i+2] for i in range(0, len(s), 2)]
##  s="12345678" を v=["12","34","56","78"] にするイメージ
##s = "".join(list)リストを文字列に変換[""]は区切り文字
##a.sort(key=itemgetter(1))リストをソートできるよ(from operator import itemgetterが必要)
##sort_p = sorted(p) 昇順ソート

# -*- coding: utf-8 -*-
from sys import stdin
from operator import itemgetter
from collections import deque, Counter
import math
import pprint
from functools import reduce
import numpy as np
import random
import bisect
import copy
# stdin = open("sample.txt")


MOD = 1000000007
INF = float('inf')
alpha = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]

def keta(kazu): # 入力されたintを桁ごとに分解，リストで出力
    kazu_str = str(kazu)
    kazu_list = [int(kazu_str[i]) for i in range(0, len(kazu_str))]
    return kazu_list

def gcd(*numbers): # 最小公倍数
    return reduce(math.gcd, numbers)

def combination(m,n): # mCn
    
    if n > m:
        return 'すまん'
    return math.factorial(m) // (math.factorial(m-n) * math.factorial(n))

def pow_k(x,n):  # (x**n)の計算の高速化
    if n == 0:
        return 1
    K = 1
    while n > 1:
        if n % 2 != 0:
            K *= x
        x *= x
        n //= 2
    return K * x

def fact(n): # nの素因数分解の結果を辞書で出力 fuct(24) → {2: 3, 3: 1}
    arr = {}
    temp = n
    for i in range(2,int(n**0.5)+1):
        if temp % i == 0:
            cnt = 0
            while temp % i == 0:
                cnt += 1
                temp //= i
            arr[i] = cnt
    if temp != 1:
        arr[temp] = 1
    if arr == {}:
        arr[n] = 1
    return arr


    
def main():
    n = int(stdin.readline().rstrip())
    a = list(map(int,[int(x) for x in stdin.readline().rstrip().split()]))
    ans = 0
    for i in range(n):
        if i % 2 == 1 and a[i] % 2 == 1:
            ans += 1
    print(ans)
main()

Submission status: Wrong Answer

Solution code:
N = int(input())
a = [int(i) for i in input().split()] 

ans = 0
for i, x in enumerate(a):
    if i % 2 == 1 and x % 2 == 1:
        ans += 1

print(ans)

Submission status: Wrong Answer

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

ans = 0

for i in range(len(a)):
  if i % 2 == 1 and a[i] % 2 == 1:
    ans += 1
    
print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin


def readline_from_stdin() -> str:
    return stdin.readline().rstrip


if __name__ == '__main__':
    N = int(input())
    A = input().split()
    a = [int(v) for _, v in enumerate(A)]
    print(len([v for i, v in enumerate(a) if i % 2 != 0 and v % 2 != 0]))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(i) for i in input().split()]

#%%
cnt = 0
for i, j in enumerate(A):
    if i % 2 == 1 and j % 2 == 1:
        cnt += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

def main():
    N = int(input())
    a = list(map(int, input().split()))

    ans = 0
    for i in range(N):
        if i % 2 == 1 and (a[i] % 2 == 1):
            ans += 1

    print(ans)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(x) for x in input().split()]

count = 0
for i in range(N):
    if i % 2 == 1 and A[i] % 2 == 1:
        count += 1
print(count)

Submission status: Wrong Answer

Solution code:
#B
N = int(input())
a = list(map(int, input().split()))

count = 0
for i, v in enumerate(a):
    if i % 2 != 0:
        if v % 2 != 0:
            count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt = 0
for i in range(len(a)):
    if i % 2 and a[i] % 2:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
from sys import stdin

n = int(stdin.readline().rstrip())
data = list(map(int, stdin.readline().rstrip().split()))


count = 0
for i in range(0,len(data)//2):
    if data[2*i+1]%2 == 1:
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(cnt )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
""" B
    https://atcoder.jp/contests/aising2020/tasks/aising2020_b
"""
import sys
import math
from functools import reduce
from bisect import bisect_left

def readString():
    return sys.stdin.readline()

def readInteger():
    return int(readString())

def readStringSet(n):
    return sys.stdin.readline().split(" ")[:n]

def readIntegerSet(n):
    return list(map(int, readStringSet(n)))

def readIntegerMatrix(n, m):
    return reduce(lambda acc, _: acc + [readIntegerSet(m)], range(0, n), [])

def main(N, a):
    count = 0
    for i in range(0, N):
        if i%2==1 and a[i]%2==1:
            count += 1
    return count

if __name__ == "__main__":
    _N = readInteger()
    _a = readIntegerSet(_N)

    print(main(_N, _a))

Submission status: Wrong Answer

Solution code:
N = int(input())
ar = list(map(int, input().split()))

cnt = 0
for i in range(N):
    if i % 2 == 0:
        continue
    if ar[i] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

N = int(sys.stdin.readline())
#L,R,d = map(int, sys.stdin.readline().split())

ans = 0

for i,n in enumerate(map(int, sys.stdin.readline().split())):
    if i % 2 == 0:
        continue
    if n % 2 == 0:
        continue
    ans += 1


print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

a=[0]*N
a=list(map(int,input().split()))
ans=0
for i in range(1,N,2):

    if(a[i]%2==1):
        ans=ans+1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np


def main(N, a):
    ans = 0
    for i in range(N):
        if i % 2 == 1 and a[i] % 2 == 1:
            ans += 1
    return ans


N = int(input())
a = list(map(int, input().split()))
print(main(N, a))

Submission status: Wrong Answer

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

s = 0

for i in range(1,n,2):
    if a[i] % 2 == 1:
        s = s + 1

print(s)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

num = 0
for i in range(n):
    if i % 2 == 1:
        if a[i] % 2 == 1:
            num += 1

print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans=0
for a_idx ,a in enumerate(A):
    if a_idx%2 !=0 and a%2 !=0:
        ans+=1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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