結果

問題 No.99 ジャンピング駒
ユーザー cologne
提出日時 2022-02-02 15:25:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 93,952 KB
最終ジャッジ日時 2024-06-11 09:26:28
合計ジャッジ時間 1,567 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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