problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p02607
s635422714
Accepted
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)
p02607
s251806618
Accepted
N = int(input()) a=list(map(int,input().split())) count=0 for i in range(1,N+1): if i%2==1: if a[i-1]%2==1: count +=1 print(count)
p02607
s913803643
Accepted
N = int(input()) a = list(map(int, input().split())) cnt = 0 for i in range(0, N): if (i+1) % 2 != 0 and a[i] % 2 != 0: cnt += 1 print(cnt)
p02607
s739015502
Accepted
N=int(input()) a=list(map(int,input().split())) x=0 for i in range(N): if i%2==0 and a[i]%2==1: x+=1 print(x)
p02607
s205078454
Accepted
N=int(input()) a=list(map(int,input().split())) count=0 for i in range(len(a)): if ((i+1)%2==1)&(a[i]%2==1): count+=1 print(count)
p02607
s534059029
Accepted
N = int(input()) a = list(map(int, input().split())) ans = 0 for i, ai in enumerate(a): i += 1 if i % 2 == 1 and ai % 2 == 1: ans += 1 print(ans)
p02607
s105008514
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)
p02607
s392585362
Accepted
n = int(input()) A = list(map(int, input().split())) cnt = 0 i = 1 for a in A: if i % 2 == 1 and a % 2 == 1: cnt += 1 i += 1 print(cnt)
p02607
s095712297
Accepted
input() a = [int(i) for i in input().split()] res = 0 for i in range(len(a)): if i % 2 == 0 and a[i] % 2 == 1: res += 1 print(res)
p02607
s426878136
Accepted
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)
p02607
s461290189
Accepted
n=int(input()) a=list(map(int,input().strip().split()))[:n] counter=0 for i in range (0,n,2): if(a[i]%2==1): counter+=1 print(counter)
p02607
s571390000
Accepted
N = int(input()) a = list(map(int, input().split())) cnt = 0 for i in range(0, N, 2): if a[i] % 2 != 0: cnt += 1 print(cnt)
p02607
s256036446
Accepted
n = int(input()) a = list(map(int,input().split())) count = 0 for i,num in enumerate(a): if (i+1)%2==1 and num%2==1: count+=1 print(count)
p02607
s447060759
Accepted
N = int(input()) a = list(map(int, input().split())) ans = 0 for i, v in enumerate(a): if (i+1)%2 and (v)%2: ans += 1 print(ans)
p02607
s980142022
Accepted
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()
p02607
s621557262
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)
p02607
s766507384
Accepted
n = int(input()) x = list(map(int, input().split())) count = 0 for i in range(n): if (i+1) % 2 != 0 and x[i]%2 != 0: count += 1 print(count)
p02607
s776601808
Accepted
N = int(input()) a = [int(i) for i in input().split()] ans = 0 for i in range(N): if i%2 == 0 and a[i]%2 != 0: ans += 1 print(ans)
p02607
s841507265
Accepted
N = int(input()) A = list(map(int, input().split())) count = 0 for i, a in enumerate(A): if (i + 1) % 2 == 1 and a % 2 == 1: count += 1 print(count)
p02607
s841864068
Accepted
N = int(input()) row = list(map(int, input().strip().split())) count=0 for i in range(0,N,2): if row[i]%2==1: count+=1 print(count)
p02607
s626649327
Accepted
N=int(input()) a=list(map(int,input().split())) count=0 for idx,i in enumerate(a): if (idx+1)%2==1 and i%2==1:count+=1 print(count)
p02607
s952243505
Accepted
n = map(int, input().split()) a = list(map(int, input().split())) cnt = 0 for i, ai in enumerate(a): if (i + 1) % 2 == 1 and ai % 2 == 1: cnt += 1 print(cnt)
p02607
s895687260
Accepted
n=int(input()) a=list(map(int,input().split())) cnt=0 for i in range(n): if i % 2==0 and a[i]%2==1: cnt+=1 print(cnt)
p02607
s705376015
Accepted
N = int(input()) a = list(map(int, input().split())) cnt = 0 for i, k in enumerate(a): if (i+1) % 2 == 1 and k % 2 == 1: cnt += 1 print(cnt)
p02607
s582889539
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)
p02607
s012773132
Accepted
ni = lambda: int(input()) nm = lambda: map(int, input().split()) nl = lambda: list(map(int, input().split())) n=ni() a=nl() cnt=0 for i in range(n): if (i+1)%2==1 and a[i]%2==1: cnt+=1 print(cnt)
p02607
s459462723
Accepted
n=int(input()) a=list(map(int,input().split())) b=[i&1 for i in a[::2]] print(sum(b))
p02607
s684557823
Accepted
import sys def _i(): return int(sys.stdin.readline().strip()) def _ia(): return map(int, sys.stdin.readline().strip().split()) def main(): n = _i() cnt = 0 for i, ai in enumerate(_ia()): if i % 2 == 1: continue cnt += (ai % 2) return cnt if __name__ == "__main__": print(main())
p02607
s402125364
Accepted
n = int(input()) c = 0 for a in [*map(int, input().split())][::2]: if a%2: c += 1 print(c)
p02607
s613609708
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)
p02607
s095883444
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)
p02607
s753402862
Accepted
N = int(input()) a = [int(x) for x in input().split()] C=0 for i in range(1,N+1): if i%2!=0: if a[i-1]%2!=0: C+=1 print(C)
p02607
s160314544
Accepted
n = int(input()) a = list(map(int, input().split())) ans = 0 for i, e in enumerate(a, 1): if i % 2 and e % 2: ans += 1 print(ans)
p02607
s299869199
Accepted
from sys import exit import math ii = lambda : int(input()) mi = lambda : map(int,input().split()) li = lambda : list(map(int,input().split())) n=ii() a=li() cnt=0 for i in range(n): if(i%2==0 and a[i]%2==1): cnt+=1 print(cnt)
p02607
s870548850
Accepted
N = int(input()) a = list(map(int, input().split())) ans = 0 for i, j in enumerate(a): if i % 2 == 0 and j % 2 == 1: ans += 1 print(ans)
p02607
s585901187
Accepted
def main(): n = int(input()) a = list(map(int,input().split())) a = [0] + a count = 0 for i in range(1,n+1): if i%2==1 and a[i]%2==1: count+=1 print(count) if __name__=='__main__': main()
p02607
s286536709
Accepted
import sys read = sys.stdin.read readline = sys.stdin.readline n = int(readline()) #print(n) a_list = list([int(x) for x in readline().rstrip().split()]) #print(a_list) count = 0 for i in a_list[::2]: #print(i) if i % 2 != 0: count += 1 print(count)
p02607
s128102268
Accepted
n = int(input()) lst = list(map(int, input().split())) cnt = 0 for i in range(0,n,2): if lst[i] % 2 == 1: cnt += 1 print(cnt)
p02607
s413584696
Accepted
N = int(input()) A = list(map(int, input().split())) count = 0 for i in range (0, N): if i%2 ==0 and A[i]%2==1: count+=1 print(count)
p02607
s686545453
Accepted
N=int(input()) a=list(map(int,input().split())) cnt=0 for i in range(N): if (i+1) % 2 != 0: #奇数 if a[i] % 2 !=0: cnt+=1 print(cnt)
p02607
s554779653
Accepted
n=int(input()) arr=list(map(int,input().split())) cnt=0 for i in range(1,n+1): if i%2!=0 and arr[i-1]%2!=0: cnt+=1 print(cnt)
p02607
s675970093
Accepted
import sys if(__name__ == "__main__"): N = int(input().strip()) AStr = input().strip().split() AList = [0] * N for i in range(N): AList[i] = int(AStr[i]) N_odd = 0 for i in range(0, N, 2): if(AList[i]%2!=0): N_odd+=1 print(N_odd)
p02607
s492982280
Accepted
N = int(input()) masu_list = list(map(int, input().split())) result = 0 for i, masu in enumerate(masu_list): i = i+1 if i % 2 == 1: if masu % 2 == 1: result = result + 1 print(result)
p02607
s653514362
Accepted
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)
p02607
s168933344
Accepted
# vim: fileencoding=utf-8 def main(): n = input() li = list(map(int, input().split())) ans = 0 for a in li[0::2]: if a % 2 == 1: ans += 1 print(ans) if __name__ == "__main__": main()
p02607
s191487118
Accepted
N = int(input()) A = list(map(int,input().split())) count = 0 for i in range(0,N,2): if A[i]%2 != 0: count += 1 print(count)
p02607
s952137392
Accepted
N = int(input()) A = list(map(int, input().split())) res = sum(1 if a % 2 == 1 else 0 for a in A[::2]) print(res)
p02607
s039697293
Accepted
n = int(input()) a = list(map(int, input().split())) ans = 0 for item in a[::2]: if item %2 == 1: ans += 1 print(ans)
p02607
s068180548
Accepted
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)
p02607
s197671763
Accepted
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)
p02607
s014901555
Accepted
N = int(input()) A = list(map(int, input().split())) total = 0 for i, a in enumerate(A): if a % 2 == 1 and (i + 1) % 2 == 1: total += 1 print(total)
p02607
s993010193
Accepted
import sys readline = sys.stdin.readline sys.setrecursionlimit(10**8) mod = 10**9+7 #mod = 998244353 INF = 10**18 eps = 10**-7 N = int(readline()) A = list(map(int,readline().split())) ans = 0 for i in range(N): if i%2 == 0 and A[i]%2 == 1: ans += 1 print(ans)
p02607
s448039305
Accepted
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)
p02607
s726119828
Accepted
N = int(input()) ans = 0 A = list(map(int, input().split())) for a in A[::2]: if a%2 != 0: ans += 1 print(ans)
p02607
s521305281
Accepted
n = int(input()) *a, = map(int, input().split()) ans = 0 for i in range(1, n + 1): if (i % 2) and (a[i-1] % 2): ans += 1 print(ans)
p02607
s219401405
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)
p02607
s489632874
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)
p02607
s501242218
Accepted
n=int(input()) #a,b=map(int,input().split()) al=list(map(int,input().split())) #l=[list(map(int,input().split())) for i in range(n)] count=0 for i in range(1,n+1): a=al[i-1] if i%2!=0 and a%2!=0: count+=1 print(count)
p02607
s580667535
Accepted
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)
p02607
s314392868
Accepted
N = int(input()) A = list(map(int,input().split())) ans = 0 for n in range(N): if n%2==0 and A[n]%2==1: ans+=1 print(ans)
p02607
s662317913
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)
p02607
s672143398
Accepted
n = int(input()) a = list(map(int, input().split())) cnt = 0 for i in range(1, n+1): if i % 2 and a[i-1] % 2: cnt += 1 print(cnt)
p02607
s079108732
Accepted
n = int(input()) A = [*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)
p02607
s795207193
Accepted
N = int(input()) A = [int(i) for i in input().split()] c = 0 for i in range(N): if (i+1) % 2 == 1 and A[i] % 2 == 1: c += 1 else: print(c)
p02607
s838769606
Accepted
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 = cnt + 1 print(cnt)
p02607
s034835841
Accepted
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)
p02607
s048137792
Accepted
import sys sys.setrecursionlimit(10**6) def main(input, print): 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) if __name__ == '__main__': main(sys.stdin.readline, print)
p02607
s439005255
Accepted
N = int(input()) a = list(map(int, input().split())) p = 0 for i in range(0, N): if (i + 1) % 2 == 1 and a[i] % 2 == 1: p = p + 1 else: p = p print (p)
p02607
s874649665
Accepted
N= int(input()) a = list(map(int,input().split())) counter=0 for i in range(N): if (i+1)%2==1: if a[i]%2==1: counter+=1 print(counter)
p02607
s531955949
Accepted
n = int(input()) a = [int(tmp) for tmp in input().split(' ')] a = [a[tmp] for tmp in range(n) if tmp % 2 == 0] cnt = 0 for tmp in a: if tmp % 2 == 1: cnt += 1 print(cnt)
p02607
s777979291
Accepted
s1 = input() s2 = input() a = int(s1) b = s2.split() c = (a + 1) // 2; cnt = 0; for i in range(c): if int(b[2 * i]) % 2 == 1: cnt = cnt + 1 print(cnt)
p02607
s789227181
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)
p02607
s341310325
Accepted
total_number = int(input()) input_list = input().split(" ") list_count = 0 answer_count = 0 for i in input_list: list_count += 1 if list_count % 2 == 1: if int(i) % 2 == 1: answer_count += 1 print(answer_count)
p02607
s607678988
Accepted
#!/usr/bin/env python3 n = int(input()) a = list(map(int, input().split())) ans = 0 for i in range(0, n, 2): if a[i] % 2: ans += 1 print(ans)
p02607
s268934969
Accepted
n=int(input()) s=list(map(int,input().split())) count=0 for i in range(n): if i%2==0 and s[i]%2!=0: count+=1 print(count)
p02607
s299153467
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)
p02607
s377800815
Accepted
N=int(input()) ai=list(map(int,input().split())) ans=0 for i in range(N): if i%2==1: continue if ai[i] %2==1: ans+=1 print(ans)
p02607
s205905537
Accepted
N=int(input()) list = list(map(int, input().split())) list.insert(0,0) l=len(list) i=1 r=0 while(i<l): if(i%2!=0): if(list[i]%2!=0): r+=1 i+=1 print(r)
p02607
s451281522
Accepted
import os import sys from collections import defaultdict, Counter from itertools import product, permutations,combinations, accumulate from operator import itemgetter from bisect import bisect_left,bisect from heapq import heappop,heappush,heapify from math import ceil, floor, sqrt from copy import deepcopy def main(): n = int(input()) a_list = list(map(int, input().split())) ans = 0 for i in range(len(a_list)): if ((i+1)%2 != 0) and (a_list[i]%2 != 0): ans += 1 print(ans) if __name__ == '__main__': main()
p02607
s735366857
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)
p02607
s232267229
Accepted
n=int(input()) As = list(map(int,input().split())) c=0 ans = 0 for a in As: c+=1 if c%2 == 1: if a%2 == 1: ans+=1 print(ans)
p02607
s727491376
Accepted
n=int(input()) a=list(map(int,input().split())) count=0 for i in range(n): if a[i]%2==1 and (i+1)%2==1: count+=1 print(count)
p02607
s187428199
Accepted
import sys input = sys.stdin.readline #n = int(input()) #l = list(map(int, input().split())) ''' a=[] b=[] for i in range(): A, B = map(int, input().split()) a.append(A) b.append(B)''' n=int(input()) cnt=0 a=list(map(int, input().split())) for i in range(0,n,2): if a[i]%2==1: cnt+=1 print(cnt)
p02607
s534860692
Accepted
n=int(input()) arr=list(map(int,input().split())) ct=0 for _ in range(n): if (_+1)%2==1 and arr[_]%2==1: ct += 1 print(ct)
p02607
s168650120
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)
p02607
s900941333
Accepted
n = int(input()) l = list(map(int, input().split(' '))) ans = 0 for i in range(0, n, 2): if l[i] % 2 == 1: ans += 1 print(ans)
p02607
s107931954
Accepted
# 以下の 2 つの条件の両方を満たすマスはいくつありますか? # マスの番号は奇数 # マスに書かれた整数は奇数 n = int(input()) a = list(map(int, input().split())) # 2 つの条件の両方を満たすマス ans = 0 for i in range(n): # マスの番号は奇数 # マスに書かれた整数は奇数 if (i+1) % 2 == 1 and a[i] % 2 == 1: ans += 1 print(ans)
p02607
s030653735
Accepted
n = int(input()) a = list(map(int, input().split())) count = 0 for i in range(len(a)): j = i + 1 if j % 2 == 0: continue if a[i] % 2 == 0: continue count += 1 print(count)
p02607
s391056600
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)
p02607
s765176332
Accepted
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)
p02607
s044608493
Accepted
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)
p02607
s498679398
Accepted
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)
p02607
s975133026
Accepted
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)
p02607
s684143241
Accepted
N = int(input()) a = list(map(int,input().split())) count = 0 for i,j in enumerate(a): if((i+1)%2==1): if(j%2 == 1): count +=1 print(count)
p02607
s213857174
Accepted
# 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)
p02607
s592718891
Accepted
N = int(input()) a = [i for i in map(int, input().split())] count = 0 for i in range(N): j=i+1 if j%2 == 1 and a[i]%2 == 1: count +=1 print(count)
p02607
s454374455
Accepted
n = int(input()) la = list(map(int, input().split())) ans = 0 for i in range(len(la)): if la[i]%2==1 and (i+1)%2==1: ans += 1 print(ans)
p02607
s318611919
Accepted
N = int(input()) A = list(map(int, input().split())) cnt = 0 for a in A[::2]: if a % 2 != 0: cnt += 1 print(cnt)
p02607
s473125204
Accepted
N=int(input()) A = list(map(int, input().split())) c=0 for i in range(0,len(A),2): if A[i]%2==1: c+=1 print(c)
p02607
s344698845
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)