結果
問題 | No.99 ジャンピング駒 |
ユーザー |
![]() |
提出日時 | 2015-09-02 23:28:02 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 74 ms / 5,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 6,784 KB |
実行使用メモリ | 15,052 KB |
最終ジャッジ日時 | 2024-07-18 21:48:26 |
合計ジャッジ時間 | 1,680 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
N = input()X = map(int, raw_input().split())even = 0;odd = 0;for x in X:if (x % 2 == 0):even += 1else:odd += 1print abs(even - odd)