結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-21 21:59:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 80 ms / 5,000 ms |
| コード長 | 280 bytes |
| コンパイル時間 | 204 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 89,216 KB |
| 最終ジャッジ日時 | 2024-06-29 07:09:04 |
| 合計ジャッジ時間 | 1,375 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math # input = sys.stdin.readline N = int(input()) X = list(map(int,input().split())) X = [x%2 for x in X] C = Counter(X) C[0] = C[0] C[1] = C[1] print(N - min(C.values())*2)