結果

問題 No.1882 Areas of Triangle
ユーザー ytft
提出日時 2022-03-28 15:49:47
言語 PyPy3
(7.3.23 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 74 ms / 2,000 ms
+ 545µs
コード長 203 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 63 ms
コンパイル使用メモリ 83,040 KB
実行使用メモリ 99,400 KB
最終ジャッジ日時 2026-09-20 05:06:40
合計ジャッジ時間 3,494 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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