結果

問題 No.1882 Areas of Triangle
ユーザー H20
提出日時 2022-03-22 20:40:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 82,164 KB
実行使用メモリ 91,604 KB
最終ジャッジ日時 2024-10-10 14:55:47
合計ジャッジ時間 2,927 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N,K = map(int, input().split())
A = list(map(int, input().split())) 
A.sort()
ans = 0
for a in A:
    ans += N-bisect.bisect_left(A,-(-(2*K)//a))
print(ans)
0