結果

問題 No.99 ジャンピング駒
ユーザー matriematrie
提出日時 2020-11-30 20:12:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 61 ms / 5,000 ms
コード長 105 bytes
コンパイル時間 862 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 16,020 KB
最終ジャッジ日時 2023-10-11 03:01:28
合計ジャッジ時間 1,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
15,892 KB
testcase_01 AC 59 ms
15,972 KB
testcase_02 AC 60 ms
16,020 KB
testcase_03 AC 60 ms
15,828 KB
testcase_04 AC 58 ms
16,004 KB
testcase_05 AC 59 ms
16,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
def p2(x):y=int(x)%2;return y
l=list(map(p2,input().split()))
print(abs(l.count(0)-l.count(1)))
0