結果
問題 |
No.1882 Areas of Triangle
|
ユーザー |
|
提出日時 | 2025-03-24 22:36:35 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 126 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 330 ms |
コンパイル使用メモリ | 82,572 KB |
実行使用メモリ | 92,332 KB |
最終ジャッジ日時 | 2025-03-24 22:36:39 |
合計ジャッジ時間 | 3,364 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 24 |
ソースコード
from bisect import bisect_right N,K = map(int,input().split()) A = sorted(list(map(int,input().split()))) ans = 0 for i in range(N): ind = bisect_right(A,(2*K-1)//A[i]) ans += N-ind print(ans)