結果

問題 No.99 ジャンピング駒
ユーザー JunOnumaJunOnuma
提出日時 2017-06-08 15:24:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 153 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 7,148 KB
実行使用メモリ 15,076 KB
最終ジャッジ日時 2023-10-23 19:45:49
合計ジャッジ時間 1,229 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(raw_input())
l = map(int, raw_input().split())
e = 0
o = 0
for i in l:
    if i % 2 == 0:
        e += 1
    else:
        o += 1
print abs(e-o)
0