結果

問題 No.1882 Areas of Triangle
ユーザー ohanaohana
提出日時 2023-09-29 11:51:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 93,052 KB
最終ジャッジ日時 2023-09-29 11:51:12
合計ジャッジ時間 5,853 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,476 KB
testcase_01 AC 70 ms
71,208 KB
testcase_02 AC 70 ms
71,568 KB
testcase_03 AC 74 ms
71,388 KB
testcase_04 AC 176 ms
90,876 KB
testcase_05 AC 178 ms
93,052 KB
testcase_06 AC 118 ms
92,204 KB
testcase_07 AC 76 ms
71,120 KB
testcase_08 AC 76 ms
71,280 KB
testcase_09 AC 74 ms
71,584 KB
testcase_10 AC 70 ms
71,436 KB
testcase_11 AC 72 ms
71,276 KB
testcase_12 AC 70 ms
71,352 KB
testcase_13 AC 70 ms
71,220 KB
testcase_14 AC 70 ms
71,352 KB
testcase_15 AC 71 ms
71,308 KB
testcase_16 AC 77 ms
75,336 KB
testcase_17 AC 81 ms
76,760 KB
testcase_18 AC 99 ms
76,660 KB
testcase_19 AC 85 ms
76,788 KB
testcase_20 AC 87 ms
76,716 KB
testcase_21 AC 85 ms
76,752 KB
testcase_22 AC 93 ms
77,252 KB
testcase_23 AC 126 ms
80,224 KB
testcase_24 AC 99 ms
80,136 KB
testcase_25 AC 70 ms
71,424 KB
testcase_26 AC 71 ms
71,468 KB
testcase_27 AC 74 ms
71,308 KB
testcase_28 AC 74 ms
71,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

n, k = map(int, input().split())
A = list(map(int, input().split()))
A.sort()

ans = 0

for a in A:
    ans += n - bisect.bisect_left(A, 2 * k / a)

print(ans)
0