結果

問題 No.99 ジャンピング駒
ユーザー DrDrpilotDrDrpilot
提出日時 2022-03-16 12:00:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 79 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 20,800 KB
最終ジャッジ日時 2023-10-24 16:46:53
合計ジャッジ時間 1,433 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
20,800 KB
testcase_01 AC 77 ms
20,800 KB
testcase_02 AC 75 ms
20,800 KB
testcase_03 AC 77 ms
20,800 KB
testcase_04 AC 74 ms
20,800 KB
testcase_05 AC 79 ms
20,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=list(map(int,input().split()))
odd=0;even=0
for i in x:
    if i%2==0:
        even+=1
    else:
        odd+=1
print(abs(odd-even))
0