結果
| 問題 | No.1882 Areas of Triangle | 
| ユーザー |  _matumo_ | 
| 提出日時 | 2022-04-26 09:33:08 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 152 ms / 2,000 ms | 
| コード長 | 140 bytes | 
| コンパイル時間 | 78 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 21,796 KB | 
| 最終ジャッジ日時 | 2024-06-28 04:44:32 | 
| 合計ジャッジ時間 | 2,809 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 5 | 
| other | AC * 24 | 
ソースコード
N,K=map(int,input().split()) A=[0]+sorted(map(int,input().split())) K2=K*2 sm=0 i=N for a in A: while a*A[i]>=K2: i-=1 sm+=N-i print(sm)
