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: Accepted

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:
        ans += 1
print(ans)

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

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: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
n = int(input())
a = list(map(int, input().split()))
cnt = 0
for i in range(1, n+1, 2):
    if a[i-1] % 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 range(N):
  if((i+1)%2==1 and a[i]%2==1):
    ans += 1
print(ans)

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n = int(input())
a = [int(each) for each in input().split()]

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

Submission status: Accepted

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 == 1:
        c += 1
print(c)

Submission status: Accepted

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

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

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

print(res)

Submission status: Accepted

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==1:
        c+=1
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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 ==1:
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
def i():
	return int(input())
def i2():
	return map(int,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

n = i()
a = intl()

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def function(N, a):
    number = 0
    ans = 0
    while number < N:
        if number % 2 == 0:
            if a[number] % 2 == 1:
                ans += 1
        number += 1

    return ans


if __name__ == '__main__':
    N = int(input())
    a = input().split()
    a = [int(i) for i in a]
    print(function(N, a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

print(len([c for c in A[::2]if c%2==1]))

Submission status: Accepted

Solution code:
from sys import stdin
data = stdin.readlines()

n = int(data[0].split()[0])
a = [int(s) for s in data[1].split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

for _ in range(0, n, 2):
  if asa[_]%2==1:
    ans+= 1
    
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

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

b= []
b = a[0::2]
#print(b)
cnt = 0
for i in b:
    if i%2==1:
        cnt = cnt+1
print(cnt)

Submission status: Accepted

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

for i in A:
  if num%2!=0:
    if i%2!=0:
      cnt += 1
  num += 1
print(cnt)

Submission status: Accepted

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

a.insert(0,0)
ans=0
for i in range(1,len(a)):
    if i%2==1 and a[i]%2==1:
        ans+=1

print(ans)

Submission status: Accepted

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

result = 0
for i in range(0, N, 2):
    result += A[i]%2==1
print(result)

Submission status: Accepted

Solution code:
import sys
from collections import defaultdict, Counter, namedtuple, deque
import itertools
import functools
import bisect
import heapq
import math
import copy
# from fractions import gcd

MOD = 10 ** 9 + 7
# MOD = 998244353
# sys.setrecursionlimit(10**8)


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

print(count)

Submission status: Accepted

Solution code:
import sys


def resolve(in_):
    n = int(in_.readline())
    a = tuple(map(int, in_.readline().split()))
    return sum(1 for i, v in enumerate(a, 1) if i % 2 and v % 2)


def main():
    answer = resolve(sys.stdin.buffer)
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def cin():
    return input().split()

n = int(input())
res = 0
x = cin()
l = len(x)
i = 0
while i < l:
    if (i + 1)%2!=0 and int(x[i])%2!=0:
        res += 1
    i += 1
print(res)

Submission status: Accepted

Solution code:
n = input()
N = int(n)
list = input().rstrip().split(" ")
nums = []
j = 0
for i in list:
    if j % 2 ==0:
        f = int(i)
        nums.append(f)
    j += 1
ans = 0
for k in nums:
    if k % 2 != 0:
        ans +=1
print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
import sys
import math

def input():
    return sys.stdin.readline().rstrip()


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

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


    print(count)





if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
N = int(input())

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

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

print(count)

Submission status: Accepted

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 == 1 :
      cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

cnt = 0
for idx, ai in enumerate(a):
  if (idx+1) % 2 == 1 and ai % 2 == 1:
    cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
a = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
n,*aa = map(int, open(0).read().split())

print(sum([(i+1)%2 and v%2 for i,v in enumerate(aa)]))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 標準入力を取得
N = int(input())
a = list(map(int, input().split()))

# 求解処理
ans = 0
for i in range(0, N, 2):
    ans += (a[i] % 2 == 1)

# 結果出力
print(ans)

Submission status: Accepted

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

ans = 0
for i, num in enumerate(nums):
    if (i+1) % 2 != 0 and num % 2 != 0:
        ans += 1

print(ans)

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

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: Accepted

Solution code:
# B An Odd Problem

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

import sys

def main():
    maps=[]
    n = int(input())
    count=0
    maps=list(map(int,input().split()))
    for idx,value in enumerate(maps,1):
        if idx % 2 != 0 and value %2 !=0:
            count+=1
    print(count)            

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
@author: H_Hoshigi
"""
def main():
    N = int(input())
    A_lsit = list(map(int, input().split()))

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

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==1:
        ans+= 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!python3.8
# -*- coding: utf-8 -*-
# aising2020/aising2020_b
import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    N = i2n()
    a = i2nn()
    ans = 0
    for i in range(N):
        ans += bool((i + 1) % 2 and a[i] % 2)
    print(ans)
    return

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

ans = 0
for a_i, i in zip(a, range(len(a))):
    if ((i+1)%2==1) and ((a_i)%2==1):
        ans += 1
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(c)

Submission status: Accepted

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

cnt = 0
for i, x in enumerate(s):
    if (i + 1) % 2 == 1 and x % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

ans = 0

for i in range(1, len(A)+1):
    if i%2==1 and A[i-1]%2==1:
        ans += 1

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

ans = [ ( ((n+1) * i % 2 ) == 1)*1 for n,i in enumerate(a)]
print( sum(ans ) )

Submission status: Accepted

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

Submission status: Accepted

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

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

print(n)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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==1:
        ans+=1
print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(count)

Submission status: Accepted

Solution code:
n = int(input())

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

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

print(ans)

Submission status: Accepted

Solution code:

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

icnt=0

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
from copy import deepcopy

def main():
    n, *a = map(int, read().split())
    if n == 1:
        if a[0] % 2 == 1:
            print(1)
        else:
            print(0)
        sys.exit()
    r = 0
    for i1 in range(0,n,2):
        r += a[i1] % 2 == 1
    print(r)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

result = 0
for i, a_ in enumerate(a):
    i+=1
    if i%2!=0 and a_%2!= 0:
        result+=1
print(result)

Submission status: Accepted

Solution code:
n = int(input())
an = [int(a) for a in input().split()]

answer = 0
for i in range(0,len(an),2):
  if an[i]%2 == 1:
    answer += 1

print(answer)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

cnt = 0

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

print(cnt)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
As = map(lambda x: int(x), input().split(" "))

result = 0

for i, a in enumerate(As):
    index = i+1
    if a % 2 == 1 and index % 2 == 1:
        result += 1

print(result)

Submission status: Accepted

Solution code:
def main():
    import sys
    def input(): return sys.stdin.readline().rstrip()
    n = int(input())
    a = list(map(int, input().split()))
    cnt = 0
    for i in range(0, n, 2):
        if a[i]%2 == 1:
            cnt += 1
    print(cnt)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def main():
    n = int(input().strip())
    a_list = list(map(int, input().split()))

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

Solution code:
# 整数1個だけ
N = int(input().strip())

# 別変数の整数複数個
A = [int(x) for x in input().strip().split(" ")]

cnt = 0

for i, v in enumerate(A):
    if i % 2 != 0:
        continue
    if v % 2 == 0:
        continue
    cnt += 1

print(cnt)

Submission status: Accepted

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

masu_odd = masu[::2]
masu_odd_len = len(masu_odd)

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

Submission status: Accepted

Solution code:
n = int(input())
a = [ int(x) for x in input().split() ] # list型で代入される。
c = 0

for index, el in enumerate(a):
    if index % 2 == 0 and el % 2 == 1:
        c += 1

print(c)

Submission status: Accepted

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 == 1:
        ans += 1
        
print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

cnt=0
for i, masu in enumerate(ass):
  if (masu%2 == 1)&((i+1)%2 == 1):
    cnt+=1
print(cnt)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = 0
for _ in range(0,n,2):
    if lst[_] % 2 != 0:
        ans += 1
    
print(ans)

Submission status: Accepted

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 == 1:
        ans +=1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

l1 = l[0::2]
cnt = 0
for i in l1:
    if i % 2 == 1:
        cnt += 1
print(cnt)