結果

問題 No.99 ジャンピング駒
ユーザー eiji0313eiji0313
提出日時 2018-01-07 01:14:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 18,960 KB
最終ジャッジ日時 2023-08-24 22:54:03
合計ジャッジ時間 1,583 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
18,816 KB
testcase_01 AC 63 ms
18,812 KB
testcase_02 AC 64 ms
18,960 KB
testcase_03 AC 64 ms
18,952 KB
testcase_04 AC 64 ms
18,828 KB
testcase_05 AC 63 ms
18,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=[int(x) for x in input().split()]
even=[i for i in x if i%2==0]
odd=[i for i in x if i%2==1]
print(abs(len(even)-len(odd)))
0