結果

問題 No.99 ジャンピング駒
ユーザー あかりきあかりき
提出日時 2021-02-08 08:53:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 5,000 ms
コード長 132 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 86,948 KB
実行使用メモリ 91,476 KB
最終ジャッジ日時 2023-09-18 14:28:26
合計ジャッジ時間 1,640 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n=int(input())
l=list(map(int,input().split()))
a=0;b=0
for i in range(n):
  if l[i]%2==0:
    a+=1
  else:
    b+=1
print(abs(a-b))
0