結果

問題 No.1280 Beyond C
ユーザー ntuda
提出日時 2024-09-16 11:24:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 266 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 82,564 KB
実行使用メモリ 97,876 KB
最終ジャッジ日時 2024-09-16 11:24:10
合計ジャッジ時間 2,715 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import *
N, M, C = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
A.sort()
B.sort(reverse=True)
j = 0
cnt = 0
for a in A:
    while j < M and a * B[j] > C:
        j += 1
    cnt += j
print(cnt / N / M)
0