結果

問題 No.99 ジャンピング駒
ユーザー konabekonabe
提出日時 2018-06-22 20:54:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 5,000 ms
コード長 167 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 18,888 KB
最終ジャッジ日時 2023-09-13 08:06:17
合計ジャッジ時間 1,117 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
18,888 KB
testcase_01 AC 59 ms
18,872 KB
testcase_02 AC 58 ms
18,820 KB
testcase_03 AC 58 ms
18,880 KB
testcase_04 AC 59 ms
18,812 KB
testcase_05 AC 58 ms
18,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

N = int(input())
X = list(map(int, sys.stdin.read().split()))
oc = sum(1 for x in X if x % 2 == 1)
ec = sum(1 for x in X if x % 2 == 0)
print(abs(oc - ec))
0