結果

問題 No.1882 Areas of Triangle
ユーザー titan23
提出日時 2022-06-24 21:06:01
言語 PyPy3
(8.0.1 + ACL)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 322 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 121 ms
コンパイル使用メモリ 64,840 KB
実行使用メモリ 74,444 KB
最終ジャッジ日時 2026-10-17 11:33:16
合計ジャッジ時間 4,293 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 5
other AC * 24 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
0