ZhenlongDai/ACPR huggingface dataset:
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = [int(s) for s in input().split()]
ans = 0
for i in range(len(a)):
    if a[i] % 2 == 1 and i % 2 == 1:
        ans += 1
print(ans)

Failing test case input:
15
13 76 46 15 54 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
a = [int(s) for s in input().split()]
ans = 0
for i in range(len(a)):
    if i % 2 == 0 and a[i] % 2 == 1:
            ans += 1
print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)
    

Failing test case input:
15
13 76 46 15 54 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 5 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 109 15 87 98 29 161 0 60 44 11 9 14 32

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int,input().split()))
ans=0
for i,aa in enumerate(a):
  if(i%2!=0):
    if(aa%2!=0):
      ans+=1
print(ans)
  

Failing test case input:
15
1 3 111 15 000 98 7 78 1 60 9 13 12 11 54

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
N = int(input())
arr = list(map(int, input().split()))
ans = 0
for i in range(N):
  if i%2==1 and arr[i]%2==1:
    ans += 1
print(ans)

Failing test case input:
15
1 3 111 15 000 98 7 78 1 60 9 13 12 11 54

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 24 2

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 109 15 132 98 29 161 1 60 8 11 9 14 32

Expected output:
5


Actual output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
4


Fixed submission (verdict: Accepted):
n = int(input())
lis = list(map(int,input().split()))

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

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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]))


Failing test case input:
15
1 10 109 15 87 98 29 161 0 60 44 11 9 14 19

Expected output:
6


Actual output:
3


Fixed submission (verdict: Accepted):
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+1) % 2 != 0 and v % 2 != 0]))

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


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


Failing test case input:
15
13 76 46 15 50 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):


def main():
    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)


if __name__ == "__main__":
    main()

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a=int(input())
b=list(map(int,input().split()))
ans=0
for i in range(a):
    if i%2==1 and b[i]%2==1:
        ans+=1
print(ans)

Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 24 11

Expected output:
4


Actual output:
5


Fixed submission (verdict: Accepted):
a=int(input())
b=list(map(int,input().split()))
ans=0
for i in range(a):
    if (i+1)%2==1 and b[i]%2==1:
        ans+=1
print(ans)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int, input().split()))
count = 0
for i, a in enumerate(a):
    if i+1 % 2 == 1:
        if a % 2 == 1:
            count += 1
print(count)


Failing test case input:
15
1 5 109 15 87 98 29 39 0 60 44 11 6 14 19

Expected output:
5


Actual output:
1


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))
count = 0
for i, a in enumerate(a):
    if (i+1) % 2 == 1:
        if a % 2 == 1:
            count += 1
print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 5 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)

Failing test case input:
15
15 11 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
output = 0


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

Failing test case input:
15
1 3 111 15 000 98 7 78 1 60 9 13 12 13 54

Expected output:
5


Actual output:
1


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
output = 0


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

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
def main():
    N = int(input())
    a = list(map(int,input().split()))

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

if __name__ == "__main__":
    main()

Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 14 19

Expected output:
4


Actual output:
5


Fixed submission (verdict: Accepted):
def main():
    N = int(input())
    a = list(map(int,input().split()))

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

if __name__ == "__main__":
    main()
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
import sys

import math
import collections

import bisect
import itertools
import fractions

import copy

import decimal

import queue



sys.setrecursionlimit(10000001)
INF = 10 ** 16
MOD = 10 ** 9 + 7


ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))





def main():
    n = ni()
    a = na()

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

if __name__ == '__main__':
    main()


Failing test case input:
15
15 11 46 15 50 98 93 129 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
import sys

import math
import collections

import bisect
import itertools
import fractions

import copy

import decimal

import queue



sys.setrecursionlimit(10000001)
INF = 10 ** 16
MOD = 10 ** 9 + 7


ni = lambda: int(sys.stdin.readline())
ns = lambda: map(int, sys.stdin.readline().split())
na = lambda: list(map(int, sys.stdin.readline().split()))





def main():
    n = ni()
    a = na()

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

if __name__ == '__main__':
    main()

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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

Failing test case input:
15
1 5 109 15 87 98 135 161 0 60 44 11 6 14 19

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n= int(input())
l=list(map(int,input().split()))
count = 0
for i in range(0,n,2):
    print(l[i]&1)
    if l[i]&1:
        count += 1
print(count)

Failing test case input:
15
15 5 71 15 87 98 135 87 0 60 44 17 6 14 19

Expected output:
5


Actual output:
1
1
1
1
0
0
0
1
5


Fixed submission (verdict: Accepted):
n= int(input())
l=list(map(int,input().split()))
count = 0
for i in range(0,n,2):
    if l[i]&1:
        count += 1
print(count)

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)

Failing test case input:
15
15 5 71 15 50 98 93 87 0 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
a = int(input())
n = list(map(int,input().split()))
cnt  = 0
ans = 0
for i in n:
    cnt = cnt +1
    if cnt % 2 == 1 and i % 2 == 1 :
        ans = ans + 1 
print (ans)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N=int(input())
count=0
A=list(map(int,input().split()))
for i in range(N):
    if i%2==1 and A[i]%2==1:
        count+=1
print(count)

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 11 9 13 32

Expected output:
6


Actual output:
4


Fixed submission (verdict: Accepted):
N=int(input())
count=0
A=list(map(int,input().split()))
for i in range(N):
    if (i+1)%2==1 and A[i]%2==1:
        count+=1
print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
13 76 46 15 50 98 93 77 31 12 44 90 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=map(int,input().split())
a=list(map(int,input().split()))

N=0
new_a=a[1::2]

for i in new_a:
    if i%2==0:
        N += 1

print(len(new_a)-N)

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 13 12 13 54

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n=map(int,input().split())
a=list(map(int,input().split()))
 
N=0
new_a=a[::2]
 
for i in new_a:
    if i%2==0:
        N += 1
 
print(len(new_a)-N)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int, input().split()))

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

print(cnt)

Failing test case input:
15
13 76 46 15 50 98 93 77 31 12 44 90 6 24 14

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int, input().split()))

count = 0

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

print(count)

Failing test case input:
5
0 5 2 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))

count = 0

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

print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int,input().split()))

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

print(res)

Failing test case input:
15
1 10 109 15 87 98 29 161 0 60 44 11 9 26 19

Expected output:
6


Actual output:
3


Fixed submission (verdict: Accepted):
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)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)



Failing test case input:
15
1 3 111 15 000 98 7 78 1 60 15 13 12 13 54

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)

Failing test case input:
15
15 5 71 15 87 98 135 87 0 60 44 17 6 14 19

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
count = 0

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 13 12 13 32

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 11 46 15 50 98 93 129 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
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:
        
        ans += 1

print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = [int(i) for i in input().split()]
h = 0
for s in range(N) :
  if s % 2 == 1:
    if a[s] % 2 == 1:
      h += 1
print(h)

Failing test case input:
15
1 3 109 15 77 98 29 78 1 60 9 11 9 14 32

Expected output:
7


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
a = [int(i) for i in input().split()]
b = a[0::2]
c = (N 
h = 0
for s in range(c) :
   if b[s] % 2 == 1:
      h += 1
print(h)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,*a = map(int,open(0).read().split())
cnt = 0
for i in a[1::2]:
    if i % 2 != 0:
        cnt += 1
print(cnt) 

Failing test case input:
15
13 76 46 15 50 70 93 77 31 12 44 90 6 24 14

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
N,*a = map(int,open(0).read().split())
cnt = 0
for i in a[::2]:
    if i % 2 != 0:
        cnt += 1
print(cnt)
Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline



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)


Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 24 11

Expected output:
4


Actual output:
5


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline



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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 13 12 13 32

Expected output:
5


Actual output:
1
55
77
28
1
9
12
32
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
5
0 5 4 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 11 46 15 50 98 93 129 41 43 44 11 6 24 14

Expected output:
3


Actual output:
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
15
15 5 8 15 50 98 93 87 0 43 44 11 6 24 14

Expected output:
2


Actual output:
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
input()
li = list(map(int, input().split()))
result = 0
for i in range(len(li)):
    if i + 1 % 2 == 1:
        if li[i] % 2 == 1:
            result += 1
print(result)


Failing test case input:
5
0 4 4 5 7

Expected output:
1


Actual output:
0


Fixed submission (verdict: Accepted):
input()
li = list(map(int, input().split()))
result = 0
for i in range(len(li)):
    if (i + 1) % 2 == 1:
        if li[i] % 2 == 1:
            result += 1
print(result)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
s = list(map(int,input().split()[:n]))
a = 0
for i in range(1,len(s)):
  if((i%2 == 0) and (s[i]%2 !=0)):
    a+=1
print(a)


Failing test case input:
15
1 3 111 15 000 98 7 78 1 60 9 13 12 13 54

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
s = list(map(int,input().split()))
a = 0
for i in range(n):
  if i%2 == 0 and s[i]%2 ==1:
    a+=1
print(a)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))

cnt = 0

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

print(cnt)

Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 14 19

Expected output:
4


Actual output:
5


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))

cnt = 0

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

print(cnt)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 5 109 15 87 98 29 161 0 60 44 11 6 14 19

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int,input().split()))

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

print(cnt)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
5
0 4 4 5 0

Expected output:
0


Actual output:
1


Fixed submission (verdict: Accepted):
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)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

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

Failing test case input:
15
1 3 109 15 77 98 29 78 1 60 9 11 1 13 32

Expected output:
7


Actual output:
4


Fixed submission (verdict: Accepted):

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

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

    print(main(_N, _a))

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 111 15 000 98 14 78 0 60 15 13 12 13 54

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):


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)

Failing test case input:
15
1 3 109 15 87 98 29 161 1 87 9 11 9 14 32

Expected output:
7


Actual output:
5


Fixed submission (verdict: Accepted):


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

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 55 15 77 98 29 78 1 60 9 11 9 13 32

Expected output:
7


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))
Re = []
for i in range(1, N+1):
  if i % 2 != 0:
    if A[i - 1] % 2 != 0:
      Re.append(i)
ans = len(Re)
print(ans)
Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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()

Failing test case input:
15
1 3 55 15 000 98 28 78 1 60 0 13 12 13 54

Expected output:
3


Actual output:
4


Fixed submission (verdict: Accepted):
def resolve():
    cnt = 0
    n = int(input())
    A = list(map(int, input().split()))
    for i in range(n):
        if (i+1) % 2 == 1 and A[i] % 2 == 1:
            cnt += 1
    
    print(cnt)

resolve()

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 11 46 15 50 98 93 77 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
n = int(input())
alist = list(map(int, input().split()))

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 5 109 15 87 98 29 39 0 60 44 11 6 14 19

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 10 109 15 87 98 29 161 0 60 86 11 9 14 32

Expected output:
5


Actual output:
1 1
2 10
3 109
4 15
5 87
6 98
7 29
8 161
9 0
10 60
11 86
12 11
13 9
14 14
15 32
5


Fixed submission (verdict: Accepted):
n = int(input())
ls = list(map(int, input().split()))

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
0 5 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
2


Actual output:
5


Fixed submission (verdict: Accepted):
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)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
15
1 3 109 15 77 98 29 78 1 60 9 11 9 1 32

Expected output:
7


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())
a_list = list(map(int, input().split()))
ans = 0

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

print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 11 9 13 32

Expected output:
6


Actual output:
4


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 13 12 13 32

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
0 5 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
2


Actual output:
5


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)


Failing test case input:
15
15 5 71 15 87 98 135 87 0 60 44 11 6 14 19

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n = int(input())

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

print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = list(map(int, input().split()))

ans = sum(1 for i, j in enumerate(a) if i % 2 == 1 and j % 2 == 1)

print(ans)


Failing test case input:
5
2 5 4 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))

ans = sum(1 for i, j in enumerate(a) if (i + 1) % 2 == 1 and j % 2 == 1)

print(ans)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 5 109 15 87 98 135 87 0 60 44 11 6 8 19

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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()


Failing test case input:
15
1 3 55 15 77 98 29 78 1 60 9 11 9 13 32

Expected output:
7


Actual output:
1
55
77
29
1
9
9
7


Fixed submission (verdict: Accepted):
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(ans)

if __name__ == '__main__':
    main()

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
n = int(input())

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)

Failing test case input:
15
1 3 111 15 000 98 14 78 1 60 15 13 12 13 54

Expected output:
4


Actual output:
7


Fixed submission (verdict: Accepted):
n = int(input())

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

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

print(ans)

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
import sys
input = sys.stdin.readline



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)

Failing test case input:
15
15 11 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
import sys
input = sys.stdin.readline



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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
c = 0
for i in range(len(a)):
    if i % 2 == 1:
        if a[i] % 2 == 1:
            c += 1

print(c)

Failing test case input:
5
2 5 4 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
c = 0
for i in range(len(a)):
    if i % 2 == 0:
        if a[i] % 2 == 1:
            c += 1

print(c)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 109 15 87 98 29 78 1 60 9 11 9 14 32

Expected output:
7


Actual output:
3


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
n = list(map(int,input().split()))

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


Failing test case input:
15
1 3 109 15 77 98 29 78 1 60 9 11 1 13 32

Expected output:
7


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
n = list(map(int,input().split()))

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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()

Failing test case input:
15
1 3 109 15 132 98 29 161 1 60 8 11 9 14 32

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n =int(input())
a =list(map(int,input().split()))



cnt = 0

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

Failing test case input:
5
0 5 2 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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(l1)

Failing test case input:
15
1 5 109 15 87 98 135 161 0 60 51 11 6 14 19

Expected output:
6


Actual output:
[1, 109, 87, 135, 0, 51, 6, 19]


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
13 76 46 15 54 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
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=c+1
print(c)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
a = list(map(int, input().split()))
cnt = 0

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

print(cnt)

Failing test case input:
15
1 10 109 29 87 98 29 161 0 60 44 11 6 14 19

Expected output:
5


Actual output:
3


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))
cnt = 0

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

print(cnt)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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) 

Failing test case input:
15
1 3 55 15 77 98 28 78 1 60 9 11 12 13 32

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
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 == 0 and a[j]%2 == 1:
        ans = ans + 1

print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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]))

Failing test case input:
5
0 5 2 5 7

Expected output:
1


Actual output:
[0, 2, 7]
[7]
1


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int,input().split()))
ans =[]

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

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n=map(int,input().split())
a=list(map(int,input().split()))

N=0
new_a=a[1::2]

for i in new_a:
    if i%22==0:
        N += 1

print(len(new_a)-N)

Failing test case input:
15
1 3 111 15 000 98 14 78 1 60 15 13 12 13 54

Expected output:
4


Actual output:
7


Fixed submission (verdict: Accepted):
n=map(int,input().split())
a=list(map(int,input().split()))
 
N=0
new_a=a[::2]
 
for i in new_a:
    if i%2==0:
        N += 1
 
print(len(new_a)-N)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
A = list(map(int, input().split()))

cnt = 0

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

print(cnt)

Failing test case input:
15
13 76 46 15 54 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
N = int(input())
A = list(map(int, input().split()))

cnt = 0

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

print(cnt)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
13 76 46 15 50 70 93 77 31 12 44 90 6 24 14

Expected output:
3


Actual output:
2


Fixed submission (verdict: Accepted):
n = int(input())
a = list(map(int, input().split()))

la = a[::2]
ans = 0

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n = int(input())
l = list(map(int,input().split()))
m = []
for i in range(n):
  if i%2==0 and l[i]%2!=0:
    m.append(l[i])

print(m)

Failing test case input:
15
15 5 71 15 50 98 135 87 0 43 44 11 6 24 11

Expected output:
4


Actual output:
[15, 71, 135, 11]


Fixed submission (verdict: Accepted):
n = int(input())
l = list(map(int,input().split()))
count = 0
for i in range(n):
  if i%2==0 and l[i]%2!=0:
    count = count + 1

print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
from sys import stdin
import sys

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


Failing test case input:
15
13 76 46 15 50 98 93 77 31 43 84 90 5 24 14

Expected output:
4


Actual output:
3


Fixed submission (verdict: Accepted):
from sys import stdin
import sys

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

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N = int(input())
a = []
a = input().split()

count = 0

for i in range(int(N/2)):
  cd = 2 * i
  jd = int(a[cd])
  if jd % 2 == 1:
    count += 1
    print(cd, jd)
    

print(count)

Failing test case input:
15
13 76 46 15 50 98 93 77 31 43 84 90 6 24 14

Expected output:
3

Actual output:
0 13
6 93
8 31
3


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))

count = 0

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

print(count)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
5
0 5 2 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):
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+1)%2==1):
        ans+=1

print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):

N =  int(input())
a = list(map(int,input().split()))
cou = 0

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

print(cou)
        

Failing test case input:
15
15 5 71 15 50 98 93 87 0 43 44 11 6 24 11

Expected output:
4


Actual output:
5


Fixed submission (verdict: Accepted):

N =  int(input())
a = list(map(int,input().split()))
cou = 0

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

print(cou)
Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):




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


Failing test case input:
5
0 5 4 5 7

Expected output:
1


Actual output:
2


Fixed submission (verdict: Accepted):




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

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


if __name__ == '__main__':
    main()

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
15 11 46 15 50 98 93 77 31 43 44 11 6 24 14

Expected output:
3


Actual output:
5


Fixed submission (verdict: Accepted):
n=int(input())
li=list(map(int,input().split()))
ans=0

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

print(ans)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N, *A = map(int, open(0).read().split())
cnt = 0
for i in range(1, N, 2):
    if A[i] % 2 == 1:
        cnt += 1
print(cnt)


Failing test case input:
15
1 5 109 15 87 98 29 39 0 60 44 11 6 14 19

Expected output:
5


Actual output:
4


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

Problem: p02607
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)

Failing test case input:
15
0 5 46 15 50 98 93 87 31 43 44 11 6 24 14

Expected output:
2


Actual output:
7


Fixed submission (verdict: Accepted):
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)

Problem: p02607
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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)

Failing test case input:
15
1 3 109 15 132 98 29 161 1 60 8 11 9 14 32

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
N = int(input())
a = list(map(int, input().split()))
count = 0;
for i in range(0,N):
  if i % 2 == 0:
    if a[i] % 2 == 1:
      count = count + 1
print(count)