結果

問題 No.99 ジャンピング駒
ユーザー rpy3cpprpy3cpp
提出日時 2015-07-18 17:35:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 152 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 18,900 KB
最終ジャッジ日時 2023-09-22 19:01:21
合計ジャッジ時間 1,112 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
18,900 KB
testcase_01 AC 61 ms
18,820 KB
testcase_02 AC 63 ms
18,864 KB
testcase_03 AC 63 ms
18,868 KB
testcase_04 AC 62 ms
18,880 KB
testcase_05 AC 63 ms
18,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
Xs = list(map(int, input().split()))
diff = 0
for x in Xs:
    if x % 2:
        diff += 1
    else:
        diff -= 1
print(abs(diff))
0