結果

問題 No.99 ジャンピング駒
ユーザー etale.K3etale.K3
提出日時 2021-04-07 22:05:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 100 bytes
コンパイル時間 774 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 19,244 KB
最終ジャッジ日時 2023-09-05 05:49:15
合計ジャッジ時間 1,567 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
19,244 KB
testcase_01 AC 55 ms
19,080 KB
testcase_02 AC 55 ms
19,028 KB
testcase_03 AC 55 ms
19,064 KB
testcase_04 AC 55 ms
19,024 KB
testcase_05 AC 54 ms
19,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(abs(sum(1 if x % 2 else -1 for x in X)))
0