結果

問題 No.1280 Beyond C
ユーザー taiga000629
提出日時 2020-11-06 21:41:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 82,312 KB
実行使用メモリ 98,560 KB
最終ジャッジ日時 2024-07-22 12:31:01
合計ジャッジ時間 2,571 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,c=map(int,input().split())
a=sorted(list(map(int,input().split())),reverse=True)
b=sorted(list(map(int,input().split())))
now=0
ans=0
for i in range(n):
    while now<m and a[i]*b[now]<=c:
        now+=1

    ans+=m-now

print(ans/(n*m))


0