結果

問題 No.1882 Areas of Triangle
ユーザー wgrape
提出日時 2023-10-31 16:32:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 91,984 KB
最終ジャッジ日時 2024-09-25 17:41:12
合計ジャッジ時間 3,139 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = sorted(list(map(int,input().split())))

import bisect
ans = 0
for i in range(N):
    ind = bisect.bisect_left(A, K * 2 / A[i])
    ans += N - ind
    
print(ans)
0