結果

問題 No.99 ジャンピング駒
ユーザー zakuro9715zakuro9715
提出日時 2015-10-08 18:41:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 132 bytes
コンパイル時間 221 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 16,216 KB
最終ジャッジ日時 2023-09-27 08:07:53
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
16,080 KB
testcase_01 AC 77 ms
16,204 KB
testcase_02 AC 73 ms
16,044 KB
testcase_03 AC 72 ms
16,216 KB
testcase_04 AC 72 ms
16,112 KB
testcase_05 AC 74 ms
16,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [0, 0]
for i in map(lambda x: int(x) + 10000000000, input().split()):
    a[i % 2] += 1
print(abs(a[0] - a[1]))
0