結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2017-06-08 15:24:27 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 79 ms / 5,000 ms |
コード長 | 153 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 7,072 KB |
実行使用メモリ | 14,996 KB |
最終ジャッジ日時 | 2024-09-22 13:28:19 |
合計ジャッジ時間 | 1,173 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
n = int(raw_input())l = map(int, raw_input().split())e = 0o = 0for i in l:if i % 2 == 0:e += 1else:o += 1print abs(e-o)