problem_id
stringclasses
100 values
submission_id
stringlengths
10
10
status
stringclasses
2 values
code
stringlengths
6
806
p02607
s013468122
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)
p02607
s582174812
Wrong Answer
import math n = int(input()) aL = list(map(int, input().split(" "))) ans = 0 for index, a in enumerate(aL): if index % 2 == 1 and a % 2 == 1: ans += 1 print(ans)
p02607
s155163302
Wrong Answer
n = int(input()) a = list(map(int, input().split())) output = 0 for i in range(n): if (i % 2 == 1) and (a[i] % 2 == 1): output = output + 1 print(output)
p02607
s292948821
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)
p02607
s171632452
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)
p02607
s770426083
Wrong Answer
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)
p02607
s399057816
Wrong Answer
#: Author - Soumya Saurav import sys,io,os,time from collections import defaultdict from collections import OrderedDict from collections import deque from itertools import combinations from itertools import permutations import bisect,math,heapq alphabet = "abcdefghijklmnopqrstuvwxyz" input = sys.stdin.readline ######################################## n = int(input()) arr = list(map(int , input().split())) ans = 0 for i in range(n): if arr[i]&1 and i&1: ans+=1 print(ans)
p02607
s780763787
Wrong Answer
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))
p02607
s182397941
Wrong Answer
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)
p02607
s686514562
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)
p02607
s538476907
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)
p02607
s950069499
Wrong Answer
n = int(input()) a = list(map(int, input().split())) cnt = 0 num_iter = n//2 for i in range(num_iter): if a[i*2+1] % 2 == 1: cnt += 1 print(cnt)
p02607
s993221446
Wrong Answer
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!=0 : count+=1 print(count)
p02607
s777269128
Wrong Answer
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)
p02607
s710101760
Wrong Answer
N = int(input()) ans = 0 a = list(map(int, input().split())) for i in range(N): if a[i] % 2 != 0 and i % 2 != 0: ans+=1 print(ans)
p02607
s224409676
Wrong Answer
n = int(input()) a = list(map(int,input().split())) total = 0 for i in range(len(a)): if a[i]%2==1 and i%2==1: total += 1 print(total)
p02607
s090937698
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)
p02607
s338669944
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)
p02607
s131246781
Wrong Answer
N = int(input()) a = [int(i) for i in input().split()] ans = 0 for i, x in enumerate(a): if i % 2 == 1 and x % 2 == 1: ans += 1 print(ans)
p02607
s298631090
Wrong Answer
n = int(input()) a = list(map(int, input().split())) cnt = 0 for i in range(n): if a[i] %2 == 1 and i // 2 != 0: cnt = cnt +1 print(cnt)
p02607
s730604124
Wrong Answer
n = int(input()) s = list(map(int, input().split())) cnt = 0 for i, x in enumerate(s): if i % 2 == 1 and x % 2 == 1: cnt += 1 print(cnt)
p02607
s184535160
Wrong Answer
def main(): N = int(input()) a_lst = list(map(int, input().split())) count = 0 for i in range(N): if i % 2 == 0: continue if a_lst[i] % 2 != 0: count += 1 print(count) if __name__ == "__main__": main()
p02607
s756763847
Wrong Answer
N = int(input()) A= list(map(int,input().split())) ans = 0 for i,a in enumerate(A): if i%2 == 1 and a%2==1: ans += 1 print(ans)
p02607
s429448473
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)
p02607
s475189659
Wrong Answer
import sys input = sys.stdin.readline N = int(input()) A = [int(_) for _ in input().split()] answer = 0 for i, el in enumerate(A): if i & 1 and el & 1: answer += 1 print(answer)
p02607
s599548053
Wrong Answer
n=int(input()) a=list(map(int,input().split())) cnt=0 for i in range(n): if i%2 and a[i]%2: cnt+=1 print(cnt)
p02607
s393732733
Wrong Answer
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)
p02607
s129380809
Wrong Answer
n = int(input()) As = list(map(int, input().split())) cnt = 0 for i,a in enumerate(As): if i%2 == 1 and a %2 == 1: cnt += 1 print(cnt)
p02607
s918471976
Wrong Answer
n = int(input()) A = [int(i) for i in input().split()] ans = 0 for i in range(n): if i%2==1 and A[i]%2==1: ans += 1 else: continue print(ans)
p02607
s164596878
Wrong Answer
v = int(input()) n = list(map(int, input().split(' '))) c = 0 for i in range(0, v): if n[i] %2 == 1 and i%2 == 1: #print(n[i]) c += 1 print(c)
p02607
s316021596
Wrong Answer
N = input() a = list(map(int, input().split())) answer = 0 for i, a in enumerate(a): if i % 2 == 1 and a % 2 == 1: answer += 1 print(answer)
p02607
s269366645
Wrong Answer
N = int(input()) res=[0] * 10050 for x in range(1,45): for y in range(1,45): for z in range(1,45): k=x*x+y*y+z*z+x*y+y*z+z*x if k>=10050: continue res[k]+=1 for i in range(N): print(res[i+1])
p02607
s620983566
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)
p02607
s118121406
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)
p02607
s920179239
Wrong Answer
n= int(input()) li=list(map(int,input().split())) a=int(0) for i in range(1,n,2): if li[i]%2==1: a+=1 else: a+=0 print(a)
p02607
s691661789
Wrong Answer
import numpy as np n = int(input()) a = list(map(int, input().split())) a = [a[i] for i in range(n) if i % 2 == 1] a = np.array(a) ans = np.sum(a % 2 == 1) print(ans)
p02607
s330561438
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)
p02607
s019752157
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)
p02607
s507105334
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)
p02607
s582682000
Wrong Answer
n=int(input()) l=list(map(int,input().split())) print(l) l=l[0::2] print(l) a=0 for i in l: if(i%2==1): a+=1 print(a)
p02607
s129689997
Wrong Answer
N=int(input()) a=[int(x) for x in input().split()] cnt=0 for i in range(N): if i%2==1 and a[i]%2==1: cnt+=1 print(cnt)
p02607
s088073337
Wrong Answer
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)
p02607
s160244867
Wrong Answer
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)
p02607
s377958195
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)
p02607
s857371814
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
p02607
s902298601
Wrong Answer
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
s924645677
Wrong Answer
n = int(input()) A = tuple(map(int, input().split())) ans = 0 for i, a in enumerate(A): if i%2 == 1 and a%2==1: ans += 1 print(ans)
p02607
s774220184
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)
p02607
s614538569
Wrong Answer
n = int(input()) string = input() num_list = [int(i) for i in string.split()] count = 0 for i in range(1, n-1): if i % 2 == num_list[i-1] % 2 == 1: count += 1 print(count)
p02607
s990980464
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)
p02607
s892356536
Wrong Answer
N = int(input()) a = list(map(int, input().split())) count = 0 for i,ai in enumerate(a): if(i%2==1)and(ai%2==1): count+=1 print(count)
p02607
s582809424
Wrong Answer
n=int(input()) *a,=map(int,input().split()) count=0 for i in range(n): if i%2==1 and a[i]%2==1: count+=1 print(count)
p02607
s553922159
Wrong Answer
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)
p02607
s966189804
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)
p02607
s245916535
Wrong Answer
def main(): n = int(input()) a = list(map(int, input().split())) cnt = 0 for i, e in enumerate(a): if i % 2 == 1 and e % 2 == 1: cnt += 1 print(cnt) if __name__ == '__main__': main()
p02607
s964592415
Wrong Answer
n = int(input()) a = list(map(int, input().split())) num = 0 for i in range(n): if i % 2 == 1: if a[i] % 2 == 1: num += 1 print(num)
p02607
s107186045
Wrong Answer
N=int(input()) input=input() masu=[int(r) for r in input.split()] ans=[] for i in range(1,N+1): if masu[i-1]%2==1 and (i-1)%2==1: ans.append(i) print(len(ans))
p02607
s940839038
Wrong Answer
n = int(input()) a = list(map(int,input().split())) ans = 0 for i,e in enumerate(a): if i % 2 == 1 and e % 2 == 1: ans += 1 print(ans)
p02607
s199690903
Wrong Answer
N = int(input()) s = list(map(int, input().split())) count = 0 for i in range(N): if (i%2 == 1) and (s[i]%2 == 1): count = count + 1 print(count)
p02607
s729423025
Wrong Answer
n=int(input()) a=list(map(int,input().split())) ans=0 for i in range(1,len(a),2): if a[i]%2==1: ans+=1 print(ans)
p02607
s701886259
Wrong Answer
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))
p02607
s490183409
Wrong Answer
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)
p02607
s572617737
Wrong Answer
# -*- coding: utf-8 -*- N = input() del N I1 = input().split() i = 0 for a in range(len(I1)): if (int(I1[a]) * a)%2 == 1: i += 1 print(i)
p02607
s185767297
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)
p02607
s529407998
Wrong Answer
N = int(input()) res=[0 for _ in range(10050)] for x in range(1,105): for y in range(1,105): for z in range(1,105): k=x*x+y*y+z*z+x*y+y*z+z*x if k<10050: res[k]+=1 for i in range(N): print(res[i+1])
p02607
s405815035
Wrong Answer
N = int(input()) data = list(map(int, input().split())) data = data[1::2] cnt = 0 for i in data: if i % 2 == 1: cnt += 1 print(cnt)
p02607
s690112954
Wrong Answer
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)
p02607
s426074167
Wrong Answer
N=int(input()) A=list(map(int,input().strip().split())) c=0 for i in range(N): if i%2!=0 and A[i]%2!=0: c+=1 print(c)
p02607
s223586361
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)
p02607
s610256939
Wrong Answer
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)
p02607
s748591174
Wrong Answer
n=int(input()) A=[int(i) for i in input().split()] ans=0 for i,a in enumerate(A): if (i+1)%2==0 and a%2==1: ans+=1 print(ans)
p02607
s122480198
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)
p02607
s675504431
Wrong Answer
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)
p02607
s904960762
Wrong Answer
n = input() a = list(map(int,input().split())) ans = 0 for i in a[1::2]: if i % 2 == 1: ans += 1 print(ans)
p02607
s401811136
Wrong Answer
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))
p02607
s256077822
Wrong Answer
N = int(input()) A = list(map(int, input().split())) ans = 0 for i in range(len(A)): if not i % 2 == 0: if not A[i] % 2 == 0: ans += 1 print(ans)
p02607
s969679967
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)
p02607
s614928846
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)
p02607
s342783294
Wrong Answer
n=int(input()) array=list(map(int,input().split())) ans=0 for m in range(n): if m%2==1 and array[m]%2==1: ans=ans+1 print(ans)
p02607
s527468755
Wrong Answer
N = int(input()) a = list(map(int,input().split())) ans = 0 for i in range(N): if i*a[i] % 2 == 1: ans += 1 print(ans)
p02607
s372834237
Wrong Answer
N = int(input()) a = list(map(int,input().split())) ans=0 for i in range(1,len(a),2): if(a[i]%2): ans+=1 print(ans)
p02607
s362396419
Wrong Answer
n = int(input()) mp = list(map(int, input().split())) cnt = 0 for i in range(len(mp)): if i % 2 == 1: if mp[i] % 2 == 1: cnt += 1 print(cnt)
p02607
s150776088
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)
p02607
s788406617
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)
p02607
s623625321
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)
p02607
s807838174
Wrong Answer
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)
p02607
s426956796
Wrong Answer
N = int(input()) a = list(map(int, input().split())) ans = 0 for i, value in enumerate(a): if i % 2 == 1 and value % 2 == 1: ans += 1 print(ans)
p02607
s497632287
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)
p02607
s530338708
Wrong Answer
N = int(input()) a = [int(x) for x in input().split()] C=0 for i in range(N): if i%2!=0: if a[i]%2!=0: C+=1 print(C)
p02607
s110229353
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)
p02607
s009677548
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)
p02607
s899764334
Wrong Answer
''' 5 1 3 4 5 7 ''' lens = int(input()) vals = [0] + [int(x) for x in input().split()] odds = 0 for i in range(1, lens+ 1): if i % 2 == 0 and vals[i] % 2 == 0: odds += 1 print(odds)
p02607
s524666807
Wrong Answer
N = int(input()) nombres = [int(x) for x in input().split()] k = 0 for indexe,nombre in enumerate(nombres): if (indexe%2 == 1 and nombre%2 == 1): k += 1 print(k)
p02607
s120757474
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)
p02607
s766542135
Wrong Answer
n = int(input()) a = map(int, input().split()) ans = 0 i = 0 for x in a: if i % 2 == x % 2 == 1: ans += 1 i += 1 print(ans)
p02607
s636036297
Wrong Answer
N = int(input()) A = list(map(int, input().split())) ans = 0 for i, a in enumerate(A): if i%2 == 1 and a%2 == 1: ans += 1 print(ans)
p02607
s027518243
Wrong Answer
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)
p02607
s935496330
Wrong Answer
N = int(input()) an = x = [int(i) for i in input().split()] count = 0 for i in range(len(an)): if (i % 2 == 0): continue if (an[i] % 2 != 0): count = count + 1 print(count)
p02607
s632237947
Wrong Answer
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)
p02607
s091876089
Wrong Answer
num1 = int(input()) num = (int(x) for x in input().split()) count = 0 for i, name in enumerate(num): if i % 2 == 1: if name % 2 == 1: count = count + 1 print(count)