結果

問題 No.99 ジャンピング駒
ユーザー NagisaNagisa
提出日時 2015-09-25 18:47:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 18,976 KB
最終ジャッジ日時 2023-09-26 15:07:14
合計ジャッジ時間 1,485 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
18,960 KB
testcase_01 AC 69 ms
18,912 KB
testcase_02 AC 71 ms
18,832 KB
testcase_03 AC 71 ms
18,904 KB
testcase_04 AC 71 ms
18,976 KB
testcase_05 AC 70 ms
18,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = list(map(int, input().split()))
T = 0
for x in L:
    if abs(x) % 2 == 0:
        T += 1
    else:
        T -= 1

print(abs(T))
0