結果

問題 No.99 ジャンピング駒
ユーザー yuppe19 😺
提出日時 2015-04-26 14:17:33
言語 Python2
(2.7.18)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 14,996 KB
最終ジャッジ日時 2024-07-05 02:48:28
合計ジャッジ時間 1,565 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/python
n = int(raw_input())
xs = map(int, raw_input().split())
p = len(filter(lambda e: e&1, xs))
q = n - p
print reduce(lambda a, b: b-a, sorted((p, q)))
0