結果
問題 | No.99 ジャンピング駒 |
ユーザー |
|
提出日時 | 2016-09-24 13:37:10 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 79 ms / 5,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 14,868 KB |
最終ジャッジ日時 | 2024-11-17 21:37:00 |
合計ジャッジ時間 | 1,591 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
N = int(raw_input())arr = map(int, raw_input().split())ans = [0,0]for i in arr:if i % 2 == 0:ans[0] += 1else:ans[1] += 1print max(ans) - min(ans)