結果

問題 No.99 ジャンピング駒
ユーザー GrayCoderGrayCoder
提出日時 2018-02-24 21:51:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 193 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 22,116 KB
最終ジャッジ日時 2024-04-24 01:12:57
合計ジャッジ時間 1,069 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
21,980 KB
testcase_01 AC 69 ms
21,984 KB
testcase_02 AC 67 ms
21,984 KB
testcase_03 AC 62 ms
21,984 KB
testcase_04 AC 63 ms
22,116 KB
testcase_05 AC 64 ms
21,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    X = tuple(map(int, input().split()))

    even = [i for i in X if not i & 1]
    odd = [i for i in X if i & 1]
    print(abs(len(even) - len(odd)))

main()
0