結果

問題 No.99 ジャンピング駒
ユーザー hikomimohikomimo
提出日時 2015-01-25 11:57:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 6,672 KB
実行使用メモリ 14,732 KB
最終ジャッジ日時 2023-09-05 04:47:49
合計ジャッジ時間 1,619 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
14,648 KB
testcase_01 AC 69 ms
14,560 KB
testcase_02 AC 69 ms
14,576 KB
testcase_03 AC 68 ms
14,692 KB
testcase_04 AC 69 ms
14,572 KB
testcase_05 AC 71 ms
14,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-




def main():
    N = input()
    X = map(int, raw_input().split())
    e = sum([1 for a in X if a % 2 == 0])
    o = len(X) - e
    print abs(e-o)


if __name__ == '__main__':
    main()
0