結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2020-07-22 10:33:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 92 ms / 5,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 358 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 88,064 KB |
最終ジャッジ日時 | 2025-01-03 09:18:51 |
合計ジャッジ時間 | 2,064 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
# import sys; input = sys.stdin.buffer.readline # sys.setrecursionlimit(10**7) from collections import defaultdict con = 10 ** 9 + 7; INF = float("inf") import copy def getlist(): return list(map(int, input().split())) #処理内容 def main(): N = int(input()) X = getlist() odd = 0 even = 0 for i in X: if i % 2 == 0: even += 1 else: odd += 1 print(abs(odd - even)) if __name__ == '__main__': main()