結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
yaoshimax
|
| 提出日時 | 2015-03-09 22:46:31 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 5,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 14,996 KB |
| 最終ジャッジ日時 | 2024-06-24 16:59:30 |
| 合計ジャッジ時間 | 1,662 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
N=int(raw_input())
X=map(int,raw_input().split())
n_odd=0
n_even=0
for x in X:
if x%2==0:
n_even+=1
else:
n_odd+=1
print max(n_odd,n_even)-min(n_odd,n_even)
yaoshimax