結果

問題 No.1882 Areas of Triangle
ユーザー shika_126
提出日時 2022-03-23 17:24:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 242 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,936 KB
最終ジャッジ日時 2024-10-11 20:27:09
合計ジャッジ時間 2,834 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
n,k = map(int,input().split())
l = sorted([int(i) for i in input().split()])
s = 0
for i in l:
    s += n - bisect.bisect_left(l,2*k/i)
print(s)
0