結果

問題 No.1280 Beyond C
ユーザー lloyzlloyz
提出日時 2022-01-30 16:03:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 207 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 2,156 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 24,728 KB
最終ジャッジ日時 2023-09-02 01:40:29
合計ジャッジ時間 3,834 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,068 KB
testcase_01 AC 16 ms
8,052 KB
testcase_02 AC 15 ms
8,012 KB
testcase_03 AC 15 ms
8,060 KB
testcase_04 AC 16 ms
7,952 KB
testcase_05 AC 16 ms
8,008 KB
testcase_06 AC 16 ms
7,940 KB
testcase_07 AC 15 ms
7,880 KB
testcase_08 AC 14 ms
7,892 KB
testcase_09 AC 15 ms
7,892 KB
testcase_10 AC 14 ms
8,024 KB
testcase_11 AC 16 ms
8,076 KB
testcase_12 AC 14 ms
7,896 KB
testcase_13 AC 15 ms
8,024 KB
testcase_14 AC 15 ms
8,016 KB
testcase_15 AC 104 ms
16,980 KB
testcase_16 AC 73 ms
16,636 KB
testcase_17 AC 91 ms
17,800 KB
testcase_18 AC 154 ms
24,728 KB
testcase_19 AC 159 ms
24,532 KB
testcase_20 AC 206 ms
23,116 KB
testcase_21 AC 207 ms
23,080 KB
testcase_22 AC 204 ms
23,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left

n, m, c = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))

A.sort()
B.sort()
ans = 0
for i in range(n):
    res = c // A[i] + 1
    idx = bisect_left(B, res)
    ans += m - idx
print(ans / n / m)
0