結果

問題 No.99 ジャンピング駒
ユーザー yaoshimaxyaoshimax
提出日時 2015-03-09 22:46:31
言語 Python2
(2.7.18)
結果
AC  
実行時間 78 ms / 5,000 ms
コード長 181 bytes
コンパイル時間 214 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 14,616 KB
最終ジャッジ日時 2023-09-06 22:47:56
合計ジャッジ時間 1,735 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N=int(raw_input())
X=map(int,raw_input().split())
n_odd=0
n_even=0
for x in X:
    if x%2==0:
        n_even+=1
    else:
        n_odd+=1
print max(n_odd,n_even)-min(n_odd,n_even)
0