結果
| 問題 | 
                            No.1882 Areas of Triangle
                             | 
                    
| ユーザー | 
                             titia
                         | 
                    
| 提出日時 | 2022-03-23 00:14:34 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 169 ms / 2,000 ms | 
| コード長 | 155 bytes | 
| コンパイル時間 | 156 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 21,812 KB | 
| 最終ジャッジ日時 | 2024-10-10 18:50:16 | 
| 合計ジャッジ時間 | 2,590 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 24 | 
ソースコード
import bisect
N,K=map(int,input().split())
A=sorted(map(int,input().split()))
ANS=0
for a in A:
    ANS+=N-bisect.bisect_left(A,(2*K+a-1)//a)
print(ANS)
            
            
            
        
            
titia