結果

問題 No.99 ジャンピング駒
ユーザー ABKZABKZ
提出日時 2022-02-27 23:25:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 888 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 97,072 KB
最終ジャッジ日時 2023-09-20 04:29:26
合計ジャッジ時間 1,785 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
93,492 KB
testcase_01 AC 103 ms
93,588 KB
testcase_02 AC 105 ms
93,892 KB
testcase_03 AC 106 ms
95,684 KB
testcase_04 AC 100 ms
90,936 KB
testcase_05 AC 103 ms
97,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x_pos = list(map(int, input().split()))

odd_x = [x for x in x_pos if x % 2 != 0]
print(abs(len(x_pos) - 2 * len(odd_x)))
0