結果

問題 No.99 ジャンピング駒
ユーザー 👑 H20H20
提出日時 2021-08-03 13:49:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 5,000 ms
コード長 141 bytes
コンパイル時間 1,509 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 91,324 KB
最終ジャッジ日時 2023-10-14 21:08:27
合計ジャッジ時間 2,497 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
91,268 KB
testcase_01 AC 110 ms
91,300 KB
testcase_02 AC 112 ms
91,268 KB
testcase_03 AC 109 ms
91,324 KB
testcase_04 AC 106 ms
91,316 KB
testcase_05 AC 108 ms
91,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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