結果

問題 No.99 ジャンピング駒
ユーザー zombietanzombietan
提出日時 2016-04-30 20:58:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,632 KB
最終ジャッジ日時 2024-04-15 08:12:03
合計ジャッジ時間 1,285 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
21,628 KB
testcase_01 AC 85 ms
21,628 KB
testcase_02 AC 88 ms
21,624 KB
testcase_03 AC 86 ms
21,620 KB
testcase_04 AC 85 ms
21,628 KB
testcase_05 AC 88 ms
21,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
c = 0
for i in list(map(int,input().split())):
    if i%2 == 0:
        c += 1
    else:
        c -= 1
print(abs(c))
0