結果
| 問題 |
No.1882 Areas of Triangle
|
| ユーザー |
|
| 提出日時 | 2022-06-24 21:06:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 149 ms / 2,000 ms |
| コード長 | 322 bytes |
| コンパイル時間 | 397 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 91,264 KB |
| 最終ジャッジ日時 | 2024-11-08 16:51:28 |
| 合計ジャッジ時間 | 3,276 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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): "bisect_left(A, x) -> x未満の数の個数" ans += n - bisect_left(A, 2*k/A[i]) print(ans)