結果

問題 No.1280 Beyond C
ユーザー neterukunneterukun
提出日時 2020-11-06 21:32:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 174 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 977 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 96,884 KB
最終ジャッジ日時 2023-09-29 18:16:42
合計ジャッジ時間 3,838 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,332 KB
testcase_01 AC 72 ms
71,152 KB
testcase_02 AC 72 ms
71,516 KB
testcase_03 AC 71 ms
71,256 KB
testcase_04 AC 71 ms
71,376 KB
testcase_05 AC 70 ms
71,480 KB
testcase_06 AC 72 ms
71,304 KB
testcase_07 AC 71 ms
71,500 KB
testcase_08 AC 71 ms
71,368 KB
testcase_09 AC 70 ms
71,392 KB
testcase_10 AC 70 ms
71,396 KB
testcase_11 AC 77 ms
76,196 KB
testcase_12 AC 71 ms
71,396 KB
testcase_13 AC 77 ms
76,168 KB
testcase_14 AC 77 ms
76,432 KB
testcase_15 AC 128 ms
91,040 KB
testcase_16 AC 115 ms
88,504 KB
testcase_17 AC 125 ms
91,488 KB
testcase_18 AC 134 ms
96,248 KB
testcase_19 AC 131 ms
96,188 KB
testcase_20 AC 172 ms
96,688 KB
testcase_21 AC 169 ms
96,884 KB
testcase_22 AC 174 ms
96,828 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect


n, m, c = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))


b = sorted(b)
all_ptn = n * m
ptn = 0

for val in a:
    other = c // val + 1
    idx = bisect.bisect_left(b, other)
    ptn += m - idx
print(ptn /all_ptn)
0