結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-03 09:57:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 87 ms / 5,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 76 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,852 KB |
| 最終ジャッジ日時 | 2024-11-25 02:41:17 |
| 合計ジャッジ時間 | 1,151 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
N = int(input())
X = [int(i) for i in input().split()]
O, E = 0,0
for x in X:
if x&1:
O += 1
else:
E += 1
print(max(O,E) - min(O,E))