結果

問題 No.99 ジャンピング駒
ユーザー rocoderrocoder
提出日時 2017-06-13 05:22:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 88 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 123 ms
コンパイル使用メモリ 11,624 KB
実行使用メモリ 20,688 KB
最終ジャッジ日時 2023-10-24 21:41:20
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
20,688 KB
testcase_01 AC 83 ms
20,688 KB
testcase_02 AC 86 ms
20,688 KB
testcase_03 AC 88 ms
20,688 KB
testcase_04 AC 86 ms
20,688 KB
testcase_05 AC 85 ms
20,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
X=[int(i) for i in input().split()]
Eo=0
for i in range (N):
    if X[i]%2==0:
        Eo+=1
    else:
        Eo-=1
if Eo<0:
    Eo*=-1
print (Eo)
0