結果

問題 No.99 ジャンピング駒
ユーザー Furu MFuru M
提出日時 2021-03-27 23:23:27
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 102 bytes
コンパイル時間 116 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 18,960 KB
最終ジャッジ日時 2023-08-19 15:00:59
合計ジャッジ時間 1,539 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

input()
X=list(map(int,input().split()))
A=0
B=0
for i in X:
 if i%2>0:A+=1
 else:B+=1
print(abs(A-B))
0