結果

問題 No.99 ジャンピング駒
ユーザー 👑 colognecologne
提出日時 2022-02-02 15:25:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 99,252 KB
最終ジャッジ日時 2023-09-02 02:48:37
合計ジャッジ時間 2,000 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
95,788 KB
testcase_01 AC 106 ms
95,936 KB
testcase_02 AC 106 ms
95,788 KB
testcase_03 AC 99 ms
94,324 KB
testcase_04 AC 105 ms
99,252 KB
testcase_05 AC 96 ms
93,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()


def main():
    N = int(input())
    *X, = map(int, input().split())
    print(abs(2 * len([x for x in X if x % 2 == 0]) - N))


if __name__ == '__main__':
    main()
0