結果

問題 No.1882 Areas of Triangle
ユーザー dangodango
提出日時 2023-06-18 21:22:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 92,996 KB
最終ジャッジ日時 2023-09-08 15:54:24
合計ジャッジ時間 5,899 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,484 KB
testcase_01 AC 71 ms
71,636 KB
testcase_02 AC 72 ms
71,468 KB
testcase_03 AC 72 ms
71,428 KB
testcase_04 AC 116 ms
92,516 KB
testcase_05 AC 118 ms
92,996 KB
testcase_06 AC 96 ms
92,720 KB
testcase_07 AC 70 ms
71,228 KB
testcase_08 AC 72 ms
71,500 KB
testcase_09 AC 72 ms
71,424 KB
testcase_10 AC 70 ms
71,152 KB
testcase_11 AC 71 ms
71,232 KB
testcase_12 AC 71 ms
71,300 KB
testcase_13 AC 71 ms
71,232 KB
testcase_14 AC 72 ms
71,468 KB
testcase_15 AC 74 ms
71,500 KB
testcase_16 AC 74 ms
71,352 KB
testcase_17 AC 77 ms
76,548 KB
testcase_18 AC 79 ms
76,244 KB
testcase_19 AC 81 ms
76,424 KB
testcase_20 AC 81 ms
76,432 KB
testcase_21 AC 82 ms
76,260 KB
testcase_22 AC 81 ms
76,516 KB
testcase_23 AC 90 ms
79,644 KB
testcase_24 AC 88 ms
79,356 KB
testcase_25 AC 70 ms
71,424 KB
testcase_26 AC 72 ms
71,344 KB
testcase_27 AC 70 ms
71,092 KB
testcase_28 AC 72 ms
71,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = [0] + sorted(map(int, input().split()))
K2 = K * 2
ans = 0
i = N
for j in A:
	while j * A[i] >= K2:
		i -= 1
	ans += N - i
print(ans)
0