結果

問題 No.99 ジャンピング駒
ユーザー steek79steek79
提出日時 2015-10-14 23:49:04
言語 Python2
(2.7.18)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 178 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 6,568 KB
実行使用メモリ 14,684 KB
最終ジャッジ日時 2023-09-28 21:08:27
合計ジャッジ時間 1,380 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
14,556 KB
testcase_01 AC 75 ms
14,684 KB
testcase_02 AC 76 ms
14,640 KB
testcase_03 AC 74 ms
14,556 KB
testcase_04 AC 73 ms
14,564 KB
testcase_05 AC 74 ms
14,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
locs = map(int, raw_input().split())
odd_even = [i%2 for i in locs]

sum_odd = odd_even.count(1)
sum_even = odd_even.count(0)

ans = abs(sum_odd - sum_even)
print ans
0