結果
| 問題 |
No.1882 Areas of Triangle
|
| ユーザー |
AEn
|
| 提出日時 | 2022-05-11 23:20:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 2,000 ms |
| コード長 | 274 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 90,880 KB |
| 最終ジャッジ日時 | 2024-07-19 09:14:01 |
| 合計ジャッジ時間 | 2,466 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 5 |
| other | AC * 24 |
ソースコード
import bisect
N, K = map(int, input().split())
A = list(map(int,input().split()))
A.sort()
cnt = 0
for i in range(N):
if (2*K)%A[i] == 0:
cnt += (N-bisect.bisect_right(A, 2*K//A[i] - 1))
else:
cnt += (N-bisect.bisect_right(A, 2*K//A[i]))
print(cnt)
AEn