結果

問題 No.99 ジャンピング駒
ユーザー togatogatogatoga
提出日時 2015-09-02 23:28:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 14,656 KB
最終ジャッジ日時 2023-09-26 02:27:39
合計ジャッジ時間 1,327 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
14,472 KB
testcase_01 AC 76 ms
14,572 KB
testcase_02 AC 77 ms
14,560 KB
testcase_03 AC 76 ms
14,572 KB
testcase_04 AC 75 ms
14,656 KB
testcase_05 AC 76 ms
14,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
X = map(int, raw_input().split())
even = 0;odd = 0;
for x in X:
    if (x % 2 == 0):
        even += 1
    else:
        odd += 1
print abs(even - odd)
0