結果

問題 No.99 ジャンピング駒
ユーザー 👑 yumechiyumechi
提出日時 2015-08-20 15:53:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 116 bytes
コンパイル時間 341 ms
コンパイル使用メモリ 10,624 KB
実行使用メモリ 18,880 KB
最終ジャッジ日時 2023-09-25 13:53:08
合計ジャッジ時間 1,435 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
18,832 KB
testcase_01 AC 56 ms
18,836 KB
testcase_02 AC 54 ms
18,740 KB
testcase_03 AC 54 ms
18,804 KB
testcase_04 AC 54 ms
18,856 KB
testcase_05 AC 54 ms
18,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
li = list(map(int, input().split()))
el = len([i for i in li if i % 2 == 0])
print(abs(n - 2 * el))
0