結果

問題 No.1882 Areas of Triangle
ユーザー MasKoaTSMasKoaTS
提出日時 2022-03-23 16:20:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 82,760 KB
実行使用メモリ 91,228 KB
最終ジャッジ日時 2024-04-20 00:18:57
合計ジャッジ時間 2,832 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,960 KB
testcase_01 AC 35 ms
53,480 KB
testcase_02 AC 37 ms
51,876 KB
testcase_03 AC 34 ms
52,128 KB
testcase_04 AC 105 ms
89,696 KB
testcase_05 AC 105 ms
91,076 KB
testcase_06 AC 76 ms
91,228 KB
testcase_07 AC 34 ms
52,308 KB
testcase_08 AC 33 ms
52,344 KB
testcase_09 AC 33 ms
53,368 KB
testcase_10 AC 32 ms
52,620 KB
testcase_11 AC 33 ms
52,156 KB
testcase_12 AC 33 ms
52,840 KB
testcase_13 AC 33 ms
52,304 KB
testcase_14 AC 33 ms
52,756 KB
testcase_15 AC 33 ms
53,556 KB
testcase_16 AC 39 ms
60,884 KB
testcase_17 AC 44 ms
62,864 KB
testcase_18 AC 44 ms
64,956 KB
testcase_19 AC 47 ms
72,008 KB
testcase_20 AC 49 ms
72,500 KB
testcase_21 AC 46 ms
70,496 KB
testcase_22 AC 53 ms
73,244 KB
testcase_23 AC 68 ms
78,600 KB
testcase_24 AC 64 ms
78,876 KB
testcase_25 AC 34 ms
53,012 KB
testcase_26 AC 34 ms
53,056 KB
testcase_27 AC 33 ms
52,796 KB
testcase_28 AC 34 ms
52,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left

n, t = map(int, input().split());   t *= 2
a = sorted(map(int, input().split()))

ans = 0
for i in a:
	k = -(-t // i)
	ans += n - bisect_left(a, k)
print(ans)
0