結果
問題 |
No.99 ジャンピング駒
|
ユーザー |
|
提出日時 | 2015-12-06 20:31:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 76 ms / 5,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 283 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 18,664 KB |
最終ジャッジ日時 | 2024-09-14 16:02:31 |
合計ジャッジ時間 | 1,723 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
def main(): n = input() l = map(int, input().split()) o, e = 0, 0 for n in l: if n % 2 == 0: e += 1 else: o += 1 print(abs(e - o)) if __name__ == '__main__': main()