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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
a = list(map(int, input().split()))

a = a[1::2]
a = np.array(a)


print(np.count_nonzero(a%2 != 0))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
a = list(map(int, input().split()))

a = a[1::2]
a = np.array(a)


print(np.count_nonzero(a%2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
import math
import itertools

n = int(input())
for i in range(n):
  high_lim = int(math.sqrt(i+1)//1) + 1

  l1 = [i for i in range(1, high_lim)]
  l2 = [i for i in range(1, high_lim)]
  l3 = [i for i in range(1, high_lim)]

  p = itertools.product(l1, l2, l3)

  result = 0
  for pair in set([tuple(sorted(pair)) for pair in p]):
    if pair[0]**2 + pair[1]**2 + pair[2]**2 + pair[0]*pair[1] + pair[1]*pair[2] + pair[0]*pair[2] == i + 1:
      result += 1
  print(result)

Submission status: Wrong Answer

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

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

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 == 1 and a[i] % 2 ==1:
    c += 1
print(c)

Submission status: Wrong Answer

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

count = 0
for a in A:
  if (a % 2 != 0):
    if A.index(a) %2 != 0:
      count += 1
print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
l=[int(X) for X in input().split()]
c=0
for i in range(1,len(l),1):
  if l[i]%2 !=0 :
    c+=1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
l=[]
l2=[]
a = list(map(int,input().split()))

for i in a:
    if i % 2 !=0:
        l.append(i)
for k,v in enumerate(l,1): 
    if k % 2 != 0:
        l2.append(k)
print(len(l2))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
input()

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

b = 0
for i, n in enumerate(a):
  if i % 2 == 0 or n % 2 == 0:
    continue
  b += 1
print(b)

Submission status: Wrong Answer

Solution code:
in_str = input()
N = int(in_str)
in_list = input().split(' ')
count = 0

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

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):
        if(a[i]%2==1):
            count+=1
print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
l=[int(X) for X in input().split()]
c=0
for i in range(len(l)):
  if l[i]%2 !=0 and i%2!=0:
    c+=1
print(c)

Submission status: Wrong Answer

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

unko = 0
for i in range(len(lst)):
    if i % 2 == 0 or lst[i] % 2 == 0:
        continue
    else:
        unko += 1
print(unko)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

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



input=input()
#input="13 76 46 15 50 98 93 77 31 43 84 90 6 24 14"
masu=[int(r) for r in input.split()]
ans=[]

for i in range(N):
  if masu[i]%2==1 and i%2==1:
    ans.append(i)

print(len(ans))

Submission status: Wrong Answer

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

N = int(input())
# print(N)
ai = input().split(' ')
# print(ai)
num = 0
for i in range(math.floor(N/2)):
    if int(ai[i*2]) % 2 == 1:
        num += 1

print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = int(input())
# print(N)
ai = input().split(' ')
# print(ai)
num = 0
for i in range(math.floor(N/2)):
    if int(ai[i]*2) % 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())
lst = list(map(int, input().split()))

unko = 0
for i in range(len(lst)):
    if i % 2 == 0:
        continue
    if lst[i] % 2 == 0:
        continue
    unko += 1
print(unko)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    n = int(input())
    num = list(map(int,input().split()))
    # print(type(num[0]))
    cnt = 0
    for i in range(2,n+1,2):
        if(abs(num[i-1]) % 2 != 0):
            cnt += 1
    print(cnt)

Submission status: Wrong Answer

Solution code:
a = input()
b = map(int,a.split())
c = 1
e = 0
for d in b:
	if c % 2 == 1:
		if d**2 % 2 == 1:
			e += 1
	c += 1
print(e)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0

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

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

Submission status: Wrong Answer

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

N = int(input())
# print(N)
ai = input().split(' ')
# print(ai)
num = 0
for i in range(math.floor(N/2)):
    if int(ai[i]) % 2 == 1:
        num += 1

print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
in_str = input()
N = int(in_str)
in_list = input().split(' ')
count = int(N/2) + 1
index = 0

while index <= (N-1):
    if int(in_list[index])%2==0:
        count -= 1
    index += 2

print(count)

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(a[i]%2==1 and i%2==1):
        ans+=1

print(ans)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

resolve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
input = input().split()
number = []
total = 0

for i in range(N):
  number.append(int(input[i]))
  if i % 2 == 1:
    if number[i] % 2 == 1:
      total += 1

print(total)

Submission status: Wrong Answer

Solution code:
N = int(input())
a = list(map(int, input().split()))
b = [(i * ai) % 2 for i, ai in enumerate(a)]
print(sum(b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = input().rstrip()
a = [int(x) for x in input().split()]
ans = 0
for val in a:
    if (int(a.index(val)) + 1) % 2 != 0 and val % 2 != 0:
       ans = 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 a[i]%2!=0 and i%2!=0:
        count+=1

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(N):
  if masu[i]%2==1 and i%2:
    ans.append(i)

print(len(ans))

Submission status: Wrong Answer

Solution code:
import sys

def L(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI():return list(map(int,sys.stdin.readline().rstrip().split()))
def LS():return list(sys.stdin.readline().rstrip().split())

def solver(N,A):
    ans = 0

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

    print(ans)

def main():

    N = LI()
    A = LI()

    solver(N,A)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())

tmp = input().split(' ')

a = []
result = []
for i in range(N):
    a.append(int(tmp[i]))
    if (i % 2 == 1 and a[i] % 2 == 1):
        result.append(a[i])

print(len(result))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

N = input().rstrip()
a = [int(x) for x in input().split()]
ans = 0
for val in a:
    if a.index(val) % 2 != 0 and val % 2 != 0:
       ans = ans + 1
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())

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

for i in range(N):
  if masu[i]%2==1 and i%2:
    ans.append(i)

print(len(ans))

Submission status: Wrong Answer

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

ans = 0
for i, a in enumerate(ai):
    if i % 2 == 0:
        continue

    if a % 2 == 0:
        continue

    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
N_list =[int(x) for x in input().split()]
c = 0
if len(N_list) % 2 == 0:
    print(0)

for i in N_list[::2]:
    if i % 2 != 0:
        c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
try:
  n=int(input())
  arr=[int(i) for i in input().split()]
  ans=0
  for i in range(1,n,2):
    if arr[i]%2!=0:
      ans+=1
  print(ans)
except:
  pass

Submission status: Wrong Answer

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

for i in range(len(a)):
  if i%2 == 0:
    ans.append(a[i])
    continue
  else:
    continue
print(ans)
print([i for i in ans if i % 2 != 0])
print(len([i for i in ans if i % 2 != 0]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
list = list(map(int, input().split()))
cnt = 0
li = []
for count, i in enumerate(list):
    if count %2 ==1:
        li.append(i)

for j in range(len(li)):
    if li[j] %2 ==1:
        cnt +=1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

cnt = 0
for i in range( n // 2 + 1):
    print((2*i + 1))
    if num[2*i - 1] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

for i, masu in enumerate(masu_list):
    if i % 2 == 1:
        if masu % 2 == 1:
            result = result + 1

print(result)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = list(map(int,input().split()))
ans =[]
for i in range(len(a)):
  if i%2 == 0:
    continue
  else:
    ans.append(a[i])

print(len([i for i in ans if i % 2 != 0]))

Submission status: Wrong Answer

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

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 == 1 and a[i] % 2 ==1:
            cnt += 1
    else:
            cnt += 0
print(str(cnt))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ans=0
n=int(input())
a=list(map(int,input().split()))
for i in range(n):
    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()))
cnt = 0

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

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 != 0) and (a[x] % 2 != 0):
        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 A[1::2]:
    if i % 2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = list(filter(lambda x: x % 2 == 1, a[1::2]))
print(len(a))

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    count = 0

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

print(ans)

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 != 0) and (a[x] % 2 != 0):
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# 解答
def abc173_a(lines):
    N = int(lines[0])
    values = map(int, lines[1].split(' '))
    answer = 0
    tmp = list()
    for value in values:
        tmp.append(value)
    print(f'tmp=[{tmp}]')
    print(f'tmp[0]=[{tmp[0]}]')
    for i in range(N):
        if i % 2 != 0:
            pass
        else:
            if tmp[i] % 2 != 0:
                answer += 1
    return [answer]


# 引数を取得
def get_input_lines(lines_count):
    lines = list()
    for _ in range(lines_count):
        lines.append(input())
    return lines


# テストデータ
def get_testdata(pattern):
    if pattern == 1:
        lines_input = ['5', '1 3 4 5 7']
        lines_export = [2]
    elif pattern == 2:
        lines_input = ['15', '13 76 46 15 50 98 93 77 31 43 84 90 6 24 14']
        lines_export = [3]
    return lines_input, lines_export


# 動作モード判別
def get_mode():
    import sys
    args = sys.argv
    if len(args) == 1:
        mode = 0
    else:
        mode = int(args[1])
    return mode


# 主処理
def main():
    mode = get_mode()
    if mode == 0:
        lines_input = get_input_lines(2)
    else:
        lines_input, lines_export = get_testdata(mode)

    lines_result = abc173_a(lines_input)

    for line_result in lines_result:
        print(line_result)

    if mode > 0:
        print(f'lines_input=[{lines_input}]')
        print(f'lines_export=[{lines_export}]')
        print(f'lines_result=[{lines_result}]')
        if lines_result == lines_export:
            print('OK')
        else:
            print('NG')


# 起動処理
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
lst=list(map(int,input().split()))
cnt=0
for i,j in enumerate(lst,1):
    if i%2!=0 and j%2!=0:
        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+1)//2):
    if a[2*i-1] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

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

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()))

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

print(cnt)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=[input() for i in range(2)]
a1=int(a[0])
a2=[int(i) for i in a[1].split()]

count=0

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

print(count)

Submission status: Wrong Answer

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


def oddProblem(l):
    count = 0
    for i in range(N):
        if (l[i] % 2 != 0 and i % 2 != 0):
            count += 1
    return count

print(oddProblem(l))

Submission status: Wrong Answer

Solution code:
N = int(input())
A_i = input().split(" ")

count=0
for i in range(1,N,1):
    if i%2!=0 and int(A_i[i])%2!=0:
        count=count+1


print(count)

Submission status: Wrong Answer

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

print(c)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

cnt = 0
for i in range(1, n // 2 + 1):
    if num[2*i - 1] % 2 == 1:
        cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
_,*a=map(int,open(0).read().split());print(sum(i%2for i in a[1::2]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

counter = 0

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

print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

count = 0
for i in range(len(a)):
  if i%2 ==1:
    if a[i]%2 ==1:
      count = count + 1
    else:
      pass
  else:
    continue

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 == 1 and A[i] % 2 == 1:
        ans += 1
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
A_i = input().split(" ")

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


print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import copy

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 0
time = 0

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

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(x) for x in input().split()]
count = 0
for i in range(len(A)):
    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

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

  print(ans)

Submission status: Wrong Answer

Solution code:
num=input()

masu=list(map(lambda x:int(x),input().split()))

masu=[i for i in masu if i%2!=0 and (masu.index(i)+1)%2!=0]
print(len(masu))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = [int(x) for x in 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:
import numpy as np
def main():
    N = int(input().rstrip())
    a = np.array([int(i) for i in input().rstrip().split(' ')])

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

if __name__ == "__main__":
    main()

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)