結果

問題 No.99 ジャンピング駒
ユーザー RK PythonRK Python
提出日時 2020-06-03 09:57:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 156 bytes
コンパイル時間 252 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 18,948 KB
最終ジャッジ日時 2023-08-16 13:33:34
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
18,884 KB
testcase_01 AC 65 ms
18,904 KB
testcase_02 AC 65 ms
18,844 KB
testcase_03 AC 68 ms
18,804 KB
testcase_04 AC 64 ms
18,872 KB
testcase_05 AC 63 ms
18,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = [int(i) for i in input().split()]
O, E = 0,0
for x in X:
    if x&1:
        O += 1
    else:
        E += 1
print(max(O,E) - min(O,E))
0