結果

問題 No.99 ジャンピング駒
ユーザー akitsugu777akitsugu777
提出日時 2018-11-06 17:31:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,632 KB
最終ジャッジ日時 2024-04-30 22:16:50
合計ジャッジ時間 1,133 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
21,632 KB
testcase_01 AC 74 ms
21,624 KB
testcase_02 AC 73 ms
21,628 KB
testcase_03 AC 71 ms
21,620 KB
testcase_04 AC 72 ms
21,620 KB
testcase_05 AC 72 ms
21,624 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

e = 0
o = 0
for i in list(map(int, input().split())):
    if i % 2 == 0:
        e += 1
    else:
        o += 1

print(abs(e-o))
0