結果

問題 No.99 ジャンピング駒
ユーザー 学ぶマン
提出日時 2025-05-21 18:07:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 1,069 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 85,676 KB
最終ジャッジ日時 2025-05-21 18:07:21
合計ジャッジ時間 2,595 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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

odd, even = 0, 0
for x in X:
    if x%2 == 0:
        even += 1
    else:
        odd += 1

ans = abs(even - odd)
print(ans)
0