Submission #15156129


Source Code Expand

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

Submission Info

Submission Time
Task B - An Odd Problem
User maspy
Language Python (3.8.2)
Score 200
Code Size 261 Byte
Status
Exec Time 25 ms
Memory 9108 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 200 / 200 random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt 24 ms 8976 KB
random_02.txt 23 ms 9108 KB
random_03.txt 20 ms 9040 KB
random_04.txt 25 ms 8984 KB
random_05.txt 25 ms 8880 KB
sample_01.txt 19 ms 8876 KB
sample_02.txt 23 ms 8972 KB