結果

問題 No.99 ジャンピング駒
ユーザー kohei2019kohei2019
提出日時 2021-06-02 21:02:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 91,448 KB
最終ジャッジ日時 2023-08-09 19:29:43
合計ジャッジ時間 2,034 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
91,376 KB
testcase_01 AC 102 ms
91,352 KB
testcase_02 AC 101 ms
91,448 KB
testcase_03 AC 99 ms
91,348 KB
testcase_04 AC 99 ms
91,416 KB
testcase_05 AC 97 ms
91,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lsX = list(map(int,input().split()))
cnto = 0
cnte = 0
for i in range(N):
    if lsX[i] % 2 == 0:
        cnto += 1
    else:
        cnte += 1
print(abs(cnto-cnte))
0