結果

問題 No.99 ジャンピング駒
ユーザー a_tena_ten
提出日時 2016-03-28 13:34:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 116 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 15,056 KB
最終ジャッジ日時 2024-04-10 04:37:40
合計ジャッジ時間 1,442 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
14,924 KB
testcase_01 AC 116 ms
14,924 KB
testcase_02 AC 110 ms
14,800 KB
testcase_03 AC 109 ms
14,928 KB
testcase_04 AC 108 ms
15,056 KB
testcase_05 AC 110 ms
15,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8

N=input()
X=map(int,raw_input().split())

X.sort()

cnt=0
for i in range(N):
	if X[i]%2==0:
		cnt+=1
	else:
		cnt-=1

print abs(cnt)
0