結果

問題 No.99 ジャンピング駒
ユーザー 👑 KazunKazun
提出日時 2020-09-05 20:18:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 146 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 91,364 KB
最終ジャッジ日時 2023-08-19 13:01:34
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
91,256 KB
testcase_01 AC 87 ms
91,364 KB
testcase_02 AC 86 ms
91,152 KB
testcase_03 AC 88 ms
91,220 KB
testcase_04 AC 86 ms
91,000 KB
testcase_05 AC 84 ms
91,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

Odd=Even=0
for x in X:
    if x%2:
        Odd+=1
    else:
        Even+=1

print(abs(Odd-Even))
0