結果

問題 No.99 ジャンピング駒
ユーザー MitI_7MitI_7
提出日時 2015-12-06 20:31:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 240 bytes
コンパイル時間 472 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 15,964 KB
最終ジャッジ日時 2023-10-12 17:30:38
合計ジャッジ時間 1,713 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
15,872 KB
testcase_01 AC 53 ms
15,876 KB
testcase_02 AC 56 ms
15,916 KB
testcase_03 AC 52 ms
15,816 KB
testcase_04 AC 51 ms
15,964 KB
testcase_05 AC 52 ms
15,960 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = input()
    l = map(int, input().split())
    o, e = 0, 0
    for n in l:
        if n % 2 == 0:
            e += 1
        else:
            o += 1
    print(abs(e - o))
    
    
if __name__ == '__main__':
    main()
0