結果

問題 No.99 ジャンピング駒
ユーザー mitsushinomitsushino
提出日時 2018-03-27 17:55:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 18,992 KB
最終ジャッジ日時 2023-09-07 19:02:39
合計ジャッジ時間 1,362 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
18,992 KB
testcase_01 AC 57 ms
18,836 KB
testcase_02 AC 57 ms
18,988 KB
testcase_03 AC 56 ms
18,816 KB
testcase_04 AC 55 ms
18,912 KB
testcase_05 AC 55 ms
18,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = list(map(int, input().split()))
even_odd_list = [0 if i % 2 == 0 else 1 for i in l]
print(abs(even_odd_list.count(0) - even_odd_list.count(1)))
0