結果
問題 | No.99 ジャンピング駒 |
ユーザー | ssmkzk |
提出日時 | 2018-07-19 15:13:26 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 65 ms / 5,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 348 ms |
コンパイル使用メモリ | 10,596 KB |
実行使用メモリ | 19,016 KB |
最終ジャッジ日時 | 2023-08-25 10:56:00 |
合計ジャッジ時間 | 1,278 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 64 ms
18,832 KB |
testcase_01 | AC | 65 ms
18,868 KB |
testcase_02 | AC | 65 ms
18,836 KB |
testcase_03 | AC | 65 ms
18,876 KB |
testcase_04 | AC | 64 ms
19,016 KB |
testcase_05 | AC | 63 ms
18,920 KB |
ソースコード
N = int(input()) l = list(map(int, input().split())) count_odd = 0 count_even = 0 for li in l: if li % 2 == 0: count_even += 1 else: count_odd += 1 print(abs(count_even - count_odd))