結果

問題 No.99 ジャンピング駒
ユーザー mitsushino
提出日時 2018-03-27 17:55:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,860 KB
最終ジャッジ日時 2024-06-25 12:49:31
合計ジャッジ時間 1,645 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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