結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
![]() |
提出日時 | 2019-09-29 18:03:02 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 85 ms / 5,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 259 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 21,860 KB |
最終ジャッジ日時 | 2024-10-03 04:30:39 |
合計ジャッジ時間 | 1,582 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
# -*- coding:utf-8 -*- komaCount = int(input()) komaList = [int(i) for i in input().rstrip().split(" ")] ans = abs(len([i for i in komaList if i % 2 == 0]) - len([i for i in komaList if i % 2 != 0])) print(ans)