結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2018-11-03 21:55:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 79 ms / 5,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 86 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 21,856 KB |
最終ジャッジ日時 | 2024-11-20 19:36:48 |
合計ジャッジ時間 | 1,439 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n = int(input())coordinates = [int(x) for x in input().split(' ')]even = [x for x in coordinates if x % 2 == 0]odd = [x for x in coordinates if x % 2 != 0]print(abs(len(even) - len(odd)))