結果

問題 No.99 ジャンピング駒
ユーザー na-shna-sh
提出日時 2019-07-12 12:43:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 105 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 19,032 KB
最終ジャッジ日時 2024-04-28 16:00:53
合計ジャッジ時間 1,213 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
18,904 KB
testcase_01 AC 70 ms
18,776 KB
testcase_02 AC 76 ms
18,772 KB
testcase_03 AC 77 ms
19,032 KB
testcase_04 AC 82 ms
18,780 KB
testcase_05 AC 83 ms
18,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

s = 0
for i in X:
    s += (i % 2) * 2 - 1
print(abs(s))
0