problem_id stringclasses 100
values | submission_id stringlengths 10 10 | status stringclasses 2
values | code stringlengths 6 806 |
|---|---|---|---|
p02607 | s600179842 | Accepted | n = int(input())
a = [int(x) for x in input().split()]
count = 0
for i in range(n):
if i%2 == 0 and a[i]%2 == 1:
count += 1
print(count)
|
p02607 | s391005241 | Accepted | a=input()
b=map(int,input().split())
c=list(b)
i=0
j=1
for k in c:
if j%2==1 and int(k)%2==1:
i +=1
j +=1
print(i) |
p02607 | s363114143 | Accepted | N = int(input())
a = list(map(int, input().split()))
cnt = 0
for i in range(N):
if a[i] % 2 == 1 and (i+1)%2 == 1:
cnt += 1
print(cnt)
|
p02607 | s970428782 | Accepted | N=int(input())
A=list(map(int,input().split()))
count=0
for i in range(0,N,2):
if i%2==0 and A[i]%2==1:
count+=1
print(count) |
p02607 | s459556992 | Accepted | def main():
n = int(input())
A = list(map(int, input().split()))
ans = 0
for a in A[::2]:
if a % 2 == 1:
ans += 1
print(ans)
if __name__ == '__main__':
main()
|
p02607 | s485459855 | 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 | s847354925 | Accepted | N = int(input())
A = list(map(int, input().split()))
count = 0
for i in range(1, N+1, 2):
if A[i-1]%2 == 1:
count += 1
print(count) |
p02607 | s656077595 | Accepted | n = int(input())
arr = list(map(int,input().split()))
def odd(n) : return (n%2==1)
lst = list(filter(odd,arr[0:n:2]))
print(len(lst)) |
p02607 | s455955985 | 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 | s783807402 | Accepted | M = int(input())
A = list(map(int, input().split()))
ans=0
for i in range(len(A)):
if i%2==0:
if A[i]%2==1:
ans=ans+1
print(ans) |
p02607 | s957258428 | 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=ans+1
print(ans) |
p02607 | s286352867 | Accepted | N = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(N):
if a[i] % 2 == 1 and i % 2 == 0:
ans += 1
print(ans) |
p02607 | s091290437 | 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 | s298722539 | Accepted | import sys
sys.setrecursionlimit(300000)
def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI0(): return map(lambda s: int(s) - 1, sys.stdin.readline().split())
def LMI(): return list(map(int, sys.stdin.readline().split()))
def LMI0(): return list(map(lambda s: int(s) - 1, sys.stdin.readline().split()))
MOD = 10 ** 9 + 7
INF = float('inf')
N = I()
A = LMI()
ans = 0
for i, a in enumerate(A):
if i % 2 == 0 and a % 2 != 0:
ans += 1
print(ans) |
p02607 | s953575410 | Accepted | import math
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(i,end='=>')
#print(a[i])
print(ans) |
p02607 | s227995361 | Accepted | def main():
N= int(input())
a = list(map(int,input().split()))
cnt = 0
for i in range(0,N,2):
if a[i] % 2 == 1:
cnt += 1
print(cnt)
if __name__ == '__main__':
main() |
p02607 | s938696486 | 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 | s069313833 | Accepted | n = int(input())
a = list(map(int, input().split()))
ans = 0
for num in range(1, n+1, 2):
if a[num-1] % 2 != 0:
ans += 1
print(ans) |
p02607 | s174942929 | Accepted | N = int(input())
ans = 0
a = list(map(int, input().split()))
for i in range(1,N+1):
if a[i-1] % 2 != 0 and i % 2 != 0:
ans+=1
print(ans) |
p02607 | s840882911 | Accepted | N = int(input())
l = map(int, input().split())
res=0
for i, v in enumerate(l):
if v % 2 == 1 and (i + 1) % 2 == 1:
res += 1
print(res) |
p02607 | s579894162 | Accepted | in_1 = input()
in_2 = input()
N = int(in_1)
a = in_2.split()
cnt = 0
for i, x in enumerate(a):
if i % 2 == 0 and int(x) % 2 == 1:
cnt += 1
print(cnt)
|
p02607 | s749962163 | Accepted | n = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(n):
if (i + 1) % 2 != 0:
if a[i] % 2 != 0:
count += 1
print(count) |
p02607 | s143909441 | Accepted | n=int(input())
a=list(map(int,input().split()))
ans=0
for i in range(0,len(a)):
if i%2==0 and a[i]%2==1:
ans+=1
print(ans) |
p02607 | s032576574 | Accepted | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N, *A = map(int, read().split())
ans = 0
for i, x in enumerate(A):
if i % 2 == 0 and x % 2 == 1:
ans += 1
print(ans) |
p02607 | s603937873 | 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 | s014798445 | Accepted | N = int(input())
AA = list(map(int,input().split()))
cnt = 0
for i in range(0,N,2):
if AA[i]%2==1:
cnt+=1
print(cnt) |
p02607 | s176370798 | Accepted | N = int(input())
data = list(map(int, input().split()))
data = data[0::2]
cnt = 0
for i in data:
if i % 2 == 1:
cnt += 1
print(cnt)
|
p02607 | s777350553 | Accepted | N = int(input())
A = [int(s) for s in input().split()]
cnt = 0
for i, a in enumerate(A):
if (i + 1) % 2 == 1 and a % 2 == 1:
cnt += 1
print(cnt) |
p02607 | s496622990 | Accepted | #AIsing2020 b
import sys,math,collections,itertools
input = sys.stdin.readline
N=int(input())
A =[0]+list(map(int,input().split()))
count = 0
for i in range(1,N+1,2):
if A[i]%2 ==1:
count +=1
print(count)
|
p02607 | s156519498 | Accepted | N=int(input())
A=list(map(int,input().strip().split()))
c=0
for i in range(N):
if (i+1)%2!=0 and A[i]%2!=0:
c+=1
print(c) |
p02607 | s518146525 | 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 != 0:
c += 1
print(c) |
p02607 | s863703733 | Accepted | N = input()
del N
I1 = input().split(); i = 0
for a in range(len(I1)):
if (int(I1[a]) * (a+1))%2 == 1:
i += 1
print(i) |
p02607 | s216631302 | Accepted | n = int(input())
a = list(map(int, input().split()))
cnt = 0
for n1, i in enumerate(a):
if n1 % 2 == 0:
if i % 2 == 1:
cnt += 1
print(cnt)
|
p02607 | s449412428 | Accepted | n = int(input())
la = [int(w) for w in input().split()]
ans = 0
for i, a in enumerate(la):
if i % 2 == 0 and a % 2 == 1:
ans += 1
print(ans)
|
p02607 | s080637448 | 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 | s727821131 | Accepted | N = int(input())
A = list(map(int, input().split()))
res = 0
for i in range(0, len(A), 2):
res += A[i] % 2
print(res) |
p02607 | s036218213 | Accepted | N = int(input())
A = list(map(int, input().split()))
ans = 0
for i, a in enumerate(A):
if i%2 == 0 and a%2 == 1:
ans += 1
print(ans) |
p02607 | s182737115 | Accepted | import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
N = int(input())
As = list(mapint())
ans = 0
for i in range(N):
a = As[i]
if a%2==1 and (i+1)%2==1:
ans += 1
print(ans) |
p02607 | s867007567 | Accepted | N, *A = map(int, open(0).read().split())
cnt = 0
for i, a in enumerate(A):
if (i+1) & 1 and a & 1:
cnt += 1
print(cnt)
|
p02607 | s762348271 | Accepted | def main():
no = int(input())
maths = map(int,input().split())
count = 0
for index,math in enumerate(maths):
if index % 2==0 and math %2==1:
count+=1
print(count)
if __name__ == "__main__":
main() |
p02607 | s599132939 | Accepted | n=int(input())
a=list(map(int,input().split()))[::2]
c=0
for i in a:
c+=(i%2)
print(c) |
p02607 | s870236776 | Accepted | n = int(input())
l = list(map(int,input().split()))
ans = 0
for i in range(len(l)):
if ((i+1)%2 == 1) and (l[i]%2 == 1):
ans += 1
print (ans)
|
p02607 | s128903792 | Accepted | N=int(input())
a = list(map(int,input().split()))
ans = 0
for i in range(N):
if (i+1) % 2 and a[i] % 2: ans += 1
print(ans) |
p02607 | s801686447 | 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 != 0:
ans += 1
print(ans)
|
p02607 | s328329834 | Accepted | N = int(input())
*A, = map(int, input().split())
ans = 0
for i, a in enumerate(A, 1):
if i % 2 == 1 and a % 2 == 1: ans += 1
print(ans) |
p02607 | s947486128 | 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 == 1):
ans += 1
print(ans) |
p02607 | s125142423 | Accepted | #!/usr/bin/env python3
import sys
input=sys.stdin.readline
n=int(input())
arr=list(map(int,input().split()))
cnt=0
for i in range(n):
if i%2==0 and arr[i]%2==1:
cnt+=1
print(cnt)
|
p02607 | s663191368 | Accepted | import sys
input = sys.stdin.readline
def main():
ans = 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:
ans += 1
print(ans)
if __name__ == '__main__':
main() |
p02607 | s407211186 | Accepted | input()
print(sum([int(x) % 2 for x in input().split()[::2]])) |
p02607 | s606852816 | Accepted | n = int(input())
a = list(map(int, input().split()))
res = 0
for i in range(0, n, 2):
if a[i] % 2 != 0:
res += 1
print(res)
|
p02607 | s618522164 | 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) |
p02607 | s078935019 | Accepted | N = int(input())
a = list(map(int, input().split()))
count = 0
for i in range(len(a)):
if a[i] % 2 == 1:
if (i + 1) % 2 == 1:
count += 1
print(count) |
p02607 | s391267562 | Accepted | n = int(input())
A = list(map(int,input().split()))
ans = 0
for i,a in enumerate(A):
if (i+1)%2:
if a%2:
ans += 1
print(ans) |
p02607 | s021714518 | Accepted | N = int(input())
i = list(map(int, input().split())) #i_1 i_2を取得し、iに値を入れる
s = 0
for j in range(0,N,2):
if i[j] % 2 == 1 :
s += 1
print(s) |
p02607 | s016066139 | Accepted | import sys
def main():
input = sys.stdin.buffer.readline
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)
if __name__ == "__main__":
main()
|
p02607 | s593195563 | 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) |
p02607 | s095826843 | 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 | s158380511 | Accepted | N = int(input().strip())
a = [int(v) for v in input().strip().split(" ")]
num = 0
for i in range(N):
if (i+1) % 2 != 0 and a[i] % 2 != 0:
num += 1
print(num) |
p02607 | s826417130 | 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 | s592415064 | Accepted | N = int(input())
la = list(map(int,input().split()))
cnt=0
for i in range(N):
if (i+2)%2==0 and la[i]%2==1:
cnt+=1
print(cnt) |
p02607 | s890936061 | Accepted | n = int(input())
count = 0
arr = [int(i) for i in input().split()]
for i in range(1,n+1):
if i % 2 == 1 and arr[i-1] % 2 == 1:
count += 1
print(count)
|
p02607 | s515391398 | Accepted | n = int(input())
a = [int(i) for i in input().split()]
count = 0
for i in range(n):
if(i % 2 == 0 and a[i] % 2 == 1):
count +=1
print(count)
|
p02607 | s809595511 | Accepted | N = int(input())
a = list(map(int,input().split()))
a.insert(0,0)
counter = 0
for i in range(1,N+1,2):
if a[i] % 2 == 1:
counter += 1
print(counter) |
p02607 | s111284926 | Accepted | N = int(input())
a = list(map(int, input().split()))
answer = 0
for i, e in enumerate(a):
i += 1
if i % 2 != 0 and e % 2 != 0:
answer += 1
print(answer) |
p02607 | s904512293 | Accepted | import sys
n, *aaa = map(int, sys.stdin.buffer.read().split())
ans = 0
for i, a in enumerate(aaa, start=1):
if i % 2 == 1 and a % 2 == 1:
ans += 1
print(ans)
|
p02607 | s109894956 | Accepted | N=int(input())
a=[0]*N
a=list(map(int,input().split()))
ans=0
for i in range(1,N+5,2):
if(N<i):
break
if(a[i-1]%2==1):
ans=ans+1
print(ans) |
p02607 | s617862091 | Accepted | n = int(input())
l = list(map(int, input().split()))
ans = 0
for i in range(n):
if i % 2 == 0 and l[i] % 2 == 1:
ans += 1
print(ans) |
p02607 | s804680930 | 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 | s914268756 | Accepted | N,*A=map(int,open(0).read().split());print(len([i for i in A[::2]if i%2])) |
p02607 | s973709329 | Accepted | N = int(input())
nums = list(map(int, input().split()))
cnt = 0
for i in range(N):
num = i + 1
if (num % 2 == 1 and nums[i] % 2 == 1):
cnt += 1
print(cnt) |
p02607 | s441437392 | Accepted | n=int(input())
l = [int(x) for x in input().split(' ')]
c=0
for i in range(0,len(l),2):
if((i+1)%2!=0 and l[i]%2!=0):
c+=1
print(c) |
p02607 | s135111873 | Accepted | import sys
sys.setrecursionlimit(10**6)
n = int(input())
A = list(map(int, input().split()))
#n, m = map(int, input().split())
#s = input()
#s,t = input().split()
#a = [int(input()) for _ in range(n)]
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab = [[int(i) for i in readline().split()] for _ in range(n)]
ID = [i for i in range(1,n+1)]
ans = 0
for i,a in zip(ID, A):
if i%2 == 1 and a%2 == 1:
ans += 1
print(ans) |
p02607 | s989762723 | Accepted | n = int(input())
nums = [int(x) for x in input().split()]
nums_v2 = []
nums_v3 = []
for i in range(len(nums)):
if (i+1)%2 == 1:
nums_v2.append(nums[i])
for i in range(len(nums_v2)):
if nums_v2[i]%2 == 1:
nums_v3.append(nums_v2[i])
print(len(nums_v3)) |
p02607 | s826737915 | Accepted | N = int(input())
a =list(map(int,input().split()))
b=[]
for i in range(N):
a1 = i % 2
a2 = a[i] % 2
if (a1==0 and a2==1):
b.append(i)
print(len(b))
|
p02607 | s984876517 | Accepted | n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
if i%2 == 1: continue
if a[i]%2 == 1:
ans += 1
print(ans) |
p02607 | s641570598 | Accepted | n = int(input())
a = list(map(int, input().split()))
ans = a[0::2]
cnt = 0
for i in range(len(ans)):
if (ans[i] % 2) != 0:
cnt += 1
print(cnt) |
p02607 | s410048124 | Accepted | def input_int():
return map(int, input().split())
def one_int():
return int(input())
def one_str():
return input()
def many_int():
return list(map(int, input().split()))
N=one_int()
A=many_int()
count=0
for i in range(0, len(A),2):
if A[i]%2==1:
count+=1
print(count) |
p02607 | s897619743 | 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 | s896283824 | Accepted | N=int(input())
a=list(map(int,input().split()))
print(sum(i%2==1 for i in a[::2])) |
p02607 | s413405793 | Accepted | N = int(input())
li = []
for i in input().split():
li.append(int(i))
a = 1
count = 0
for i in li:
if a % 2 == 1 and i % 2 == 1:
count += 1
a += 1
print(count)
|
p02607 | s227584000 | Accepted | n = int(input())
listA = list(map(int, input().split()))
count = 0
for i in range(len(listA)):
if (i+1)%2 == 1 and listA[i]%2 == 1:
count+=1
print(count) |
p02607 | s523356376 | Accepted | import sys
if __name__ == "__main__":
N = int(sys.stdin.readline())
A = list(map(lambda x: int(x), sys.stdin.readline().split()))
ans = 0
for i, a in enumerate(A):
if i%2==0 and a % 2 == 1:
ans += 1
print(ans) |
p02607 | s364553440 | Accepted | # coding: utf-8
import math
import re
import numpy as np
import copy
#読み込む
N = int(input())
an = list(map(int, input().split(' ')))
ans = 0
for i in range(N):
if (i+1) % 2 == 0:
continue
elif an[i] % 2 != 0:
ans += 1
print(ans)
|
p02607 | s967236143 | Accepted | x=int(input())
y=list(map(int, input().split()))
res=0
for i in range(0,x,2):
if y[i]%2:
res+=1
print(res) |
p02607 | s379535624 | Accepted | n=int(input())
c=0
seq=list(map(int,input().split()))
for i in range(n):
if i%2==0:
if seq[i]%2!=0:
c+=1
print(c)
|
p02607 | s329159077 | Accepted | def main():
N = int(input())
A = list(map(int, input().split()))
ans = len([a for a in A[::2] if a % 2 == 1])
print(ans)
if __name__ == '__main__':
main() |
p02607 | s997302068 | Accepted | def main():
N = int(input())
a = list(map(int,input().split(' ')))
total = 0
for i in range(N):
if i % 2 == 0 and a[i] % 2 == 1:
total += 1
print(total)
main() |
p02607 | s610267547 | Accepted | n = int(input())
arr = list(map(int,input().split()))
ans = 0
for i in range(0,len(arr)+(n%2),2):
if arr[i] % 2 != 0:
ans += 1
print(ans) |
p02607 | s932041074 | Accepted | N = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(N):
if i % 2 == 1:
continue
if a[i] % 2 == 1:
ans += 1
print(ans) |
p02607 | s377267189 | Accepted | n =int(input())
a =list(map(int,input().split()))
#print(a)
cnt = 0
for i in range(n):
#print(i)
if (i+1)%2 ==1:
if a[i]%2 ==1:
cnt +=1
print(cnt) |
p02607 | s156192362 | Accepted | how_many = int(input())
results = []
index = 0
numbers = {index+1:int(item) for index,item in zip(range(how_many),input().split())}
for key_value in numbers.items():
if key_value[0] % 2 == 1 and key_value[1] % 2 == 1:
results.append(True)
print(len(results))
|
p02607 | s307741225 | Accepted | import math
n = int(input())
aL = list(map(int, input().split(" ")))
ans = 0
for index, a in enumerate(aL):
if (index + 1) % 2 == 1 and a % 2 == 1:
ans += 1
print(ans)
|
p02607 | s895879217 | Accepted | N = int(input())
A = list(map(int,input().split()))
O = [i for i in range(N) if(i%2==0 and A[i]%2==1)]
print(len(O)) |
p02607 | s576927484 | Accepted | #template
def inputlist(): return [int(j) for j in input().split()]
#template
N = int(input())
a = inputlist()
count = 0
for i in range(N):
if i % 2 == 0 and a[i] % 2 == 1:
count +=1
print(count) |
p02607 | s136418152 | Accepted | def main():
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)
main()
|
p02607 | s303008422 | Accepted | n = int(input())
a = 0
l = list(map(int, input().split()))
for i in range(n):
if i % 2 == 0:
if l[i] % 2 != 0:
a = a + 1
print(a) |
p02607 | s222376363 | Accepted | N = int(input())
A = list(map(int,input().split()))
An = 0
for i in range(N):
if (i+1)%2 == 1:
if A[i]%2 == 1:
An +=1
print(An) |
p02607 | s814504791 | 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 != 0:
ans += 1
print(ans) |
p02607 | s236861398 | Accepted | def AnOddProblem():
num = int(input())
num_1 = list(map(int,input().split()))
count = 0
for i in range(num):
mod_1 = num_1[i] % 2
mod_2 = (i + 1) % 2
if mod_1 == 1 and mod_2 == 1:
count = count + 1
print(count)
if __name__ == '__main__':
AnOddProblem()
|
p02607 | s523442612 | Accepted | N = int(input())
A = list(map(int, input().split()))
answer = 0
for i, a in enumerate(A, 1):
if i % 2 and a % 2:
answer += 1
print(answer) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.