結果

問題 No.99 ジャンピング駒
ユーザー pluto77pluto77
提出日時 2016-04-03 20:02:03
言語 Python2
(2.7.18)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 166 bytes
コンパイル時間 751 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 14,996 KB
最終ジャッジ日時 2024-04-10 11:04:53
合計ジャッジ時間 1,314 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#coding: utf-8
##yuki_99

n=int(raw_input())
x=map(int,raw_input().split())
even=0
for i in xrange(n):
 if x[i]%2==0:
  even+=1
odd=len(x)-even 
print abs(odd-even)
 
0