結果

問題 No.99 ジャンピング駒
ユーザー sobasssysobasssy
提出日時 2019-05-04 02:05:19
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-08-30 22:14:31
合計ジャッジ時間 1,301 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
18,932 KB
testcase_01 AC 68 ms
18,820 KB
testcase_02 AC 67 ms
18,936 KB
testcase_03 AC 66 ms
18,816 KB
testcase_04 AC 65 ms
18,956 KB
testcase_05 AC 65 ms
18,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

counter = [0, 0]
num = int(input())
li = [int(x) for x in input().split(" ")]
for x in li:
    if x % 2 == 1:
        counter[0] += 1
    else:
        counter[1] += 1
print(abs(counter[0] - counter[1]))
0