結果

問題 No.99 ジャンピング駒
ユーザー matsu7874
提出日時 2015-10-07 12:41:28
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 21,648 KB
最終ジャッジ日時 2024-07-20 01:50:46
合計ジャッジ時間 1,130 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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