結果

問題 No.99 ジャンピング駒
ユーザー brthyyjp
提出日時 2021-11-15 01:47:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 82,488 KB
実行使用メモリ 84,992 KB
最終ジャッジ日時 2024-11-30 13:23:35
合計ジャッジ時間 1,224 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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