結果

問題 No.99 ジャンピング駒
ユーザー uwiuwi
提出日時 2014-12-10 01:26:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 103 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 18,884 KB
最終ジャッジ日時 2023-09-02 12:30:48
合計ジャッジ時間 1,187 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
18,840 KB
testcase_01 AC 53 ms
18,884 KB
testcase_02 AC 53 ms
18,840 KB
testcase_03 AC 53 ms
18,872 KB
testcase_04 AC 54 ms
18,844 KB
testcase_05 AC 53 ms
18,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=len([1 for _ in list(map(int,input().split())) if _ % 2 == 0])
print(abs(a-(n-a)))
0