結果
問題 | No.99 ジャンピング駒 |
ユーザー | kutsutama |
提出日時 | 2019-01-17 11:02:17 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
AC
|
実行時間 | 66 ms / 5,000 ms |
コード長 | 157 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 10,656 KB |
実行使用メモリ | 18,960 KB |
最終ジャッジ日時 | 2023-09-13 22:40:03 |
合計ジャッジ時間 | 1,215 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 63 ms
18,960 KB |
testcase_01 | AC | 64 ms
18,740 KB |
testcase_02 | AC | 63 ms
18,960 KB |
testcase_03 | AC | 61 ms
18,740 KB |
testcase_04 | AC | 66 ms
18,868 KB |
testcase_05 | AC | 60 ms
18,688 KB |
ソースコード
n = int(input()) x = [int(x) for x in input().split()] even = 0 for xi in x: if xi % 2 == 0: even += 1 res = abs(len(x) - 2 * even) print(res)