結果

問題 No.99 ジャンピング駒
ユーザー ohanaohana
提出日時 2023-10-20 11:25:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 135 bytes
コンパイル時間 2,085 ms
コンパイル使用メモリ 81,276 KB
実行使用メモリ 92,376 KB
最終ジャッジ日時 2023-10-20 11:25:33
合計ジャッジ時間 2,918 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
91,880 KB
testcase_01 AC 76 ms
91,880 KB
testcase_02 AC 77 ms
92,272 KB
testcase_03 AC 75 ms
92,376 KB
testcase_04 AC 71 ms
90,868 KB
testcase_05 AC 70 ms
90,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
print(abs(len([a for a in A if a % 2 == 0]) - len([a for a in A if a % 2 == 1])))
0