提出 #15156129
ソースコード 拡げる
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)
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - An Odd Problem |
| ユーザ | maspy |
| 言語 | Python (3.8.2) |
| 得点 | 200 |
| コード長 | 261 Byte |
| 結果 | AC |
| 実行時間 | 25 ms |
| メモリ | 9108 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | sample_01.txt, sample_02.txt |
| All | random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, sample_01.txt, sample_02.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| random_01.txt | AC | 24 ms | 8976 KiB |
| random_02.txt | AC | 23 ms | 9108 KiB |
| random_03.txt | AC | 20 ms | 9040 KiB |
| random_04.txt | AC | 25 ms | 8984 KiB |
| random_05.txt | AC | 25 ms | 8880 KiB |
| sample_01.txt | AC | 19 ms | 8876 KiB |
| sample_02.txt | AC | 23 ms | 8972 KiB |