結果

問題 No.99 ジャンピング駒
ユーザー tookunn_1213tookunn_1213
提出日時 2015-05-28 20:51:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 131 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 6,624 KB
実行使用メモリ 14,520 KB
最終ジャッジ日時 2023-09-20 17:10:59
合計ジャッジ時間 1,230 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
14,380 KB
testcase_01 AC 77 ms
14,416 KB
testcase_02 AC 76 ms
14,408 KB
testcase_03 AC 77 ms
14,520 KB
testcase_04 AC 78 ms
14,484 KB
testcase_05 AC 76 ms
14,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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