結果

問題 No.1882 Areas of Triangle
ユーザー ytft
提出日時 2022-03-28 15:49:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 92,288 KB
最終ジャッジ日時 2024-11-07 07:27:10
合計ジャッジ時間 3,424 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys,bisect
input=lambda:sys.stdin.readline().rstrip()
N,K=map(int,input().split())
A=sorted(list(map(int,input().split())))
ans=N**2
for i in A:
	ans-=bisect.bisect_left(A,(2*K+i-1)//i)
print(ans)
0