結果

問題 No.99 ジャンピング駒
ユーザー netyo715netyo715
提出日時 2021-06-29 15:17:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 112 bytes
コンパイル時間 808 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 18,936 KB
最終ジャッジ日時 2023-09-08 00:55:42
合計ジャッジ時間 1,358 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
18,924 KB
testcase_01 AC 60 ms
18,836 KB
testcase_02 AC 59 ms
18,836 KB
testcase_03 AC 59 ms
18,812 KB
testcase_04 AC 59 ms
18,916 KB
testcase_05 AC 60 ms
18,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = list(map(int, input().split()))
c = [0, 0]
for x in X:
    c[x&1] += 1
print(max(c)-min(c))
0