結果

問題 No.99 ジャンピング駒
ユーザー RK PythonRK Python
提出日時 2020-06-03 09:57:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 86 ms / 5,000 ms
コード長 156 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,856 KB
最終ジャッジ日時 2024-05-03 21:56:07
合計ジャッジ時間 1,154 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
21,728 KB
testcase_01 AC 79 ms
21,596 KB
testcase_02 AC 83 ms
21,856 KB
testcase_03 AC 82 ms
21,728 KB
testcase_04 AC 82 ms
21,728 KB
testcase_05 AC 81 ms
21,724 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