結果
| 問題 | No.1882 Areas of Triangle | 
| ユーザー |  _matumo_ | 
| 提出日時 | 2022-04-25 09:41:31 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 851 ms / 2,000 ms | 
| コード長 | 177 bytes | 
| コンパイル時間 | 81 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 21,676 KB | 
| 最終ジャッジ日時 | 2024-06-27 05:12:05 | 
| 合計ジャッジ時間 | 5,251 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 24 | 
ソースコード
N,K=map(int,input().split()) A=sorted(map(int,input().split())) K2=K*2 sm=0 for a in A: L,H=-1,N while H-L>1: M=(H+L)//2 if A[M]*a<K2: L=M else: H=M sm+=N-H print(sm)
