結果
問題 |
No.1882 Areas of Triangle
|
ユーザー |
|
提出日時 | 2022-06-24 21:04:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 150 ms / 2,000 ms |
コード長 | 274 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 91,648 KB |
最終ジャッジ日時 | 2024-11-08 16:50:20 |
合計ジャッジ時間 | 3,495 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 24 |
ソースコード
import sys from bisect import bisect_left input = lambda: sys.stdin.readline().rstrip() # ----------------------- # n, k = map(int, input().split()) A = list(map(int, input().split())) A.sort() ans = 0 for i in range(n): ans += n - bisect_left(A, 2*k/A[i]) print(ans)