結果

問題 No.99 ジャンピング駒
ユーザー caleicalei
提出日時 2020-03-01 16:30:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 97 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,624 KB
最終ジャッジ日時 2024-04-21 22:18:09
合計ジャッジ時間 2,131 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
21,500 KB
testcase_01 AC 91 ms
21,624 KB
testcase_02 AC 91 ms
21,500 KB
testcase_03 AC 92 ms
21,504 KB
testcase_04 AC 97 ms
21,496 KB
testcase_05 AC 91 ms
21,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.99 ジャンピング駒 2020/03/01

n=int(input())
x=list(map(int,input().split()))
odd,even=0,0

for e in x:
    if e%2:odd+=1
    else:even+=1

print(abs(odd-even))
0