結果

問題 No.1280 Beyond C
ユーザー uni_pythonuni_python
提出日時 2020-11-06 21:40:26
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 904 ms
コンパイル使用メモリ 86,860 KB
実行使用メモリ 96,876 KB
最終ジャッジ日時 2023-09-29 18:27:38
合計ジャッジ時間 4,683 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,320 KB
testcase_01 AC 72 ms
71,228 KB
testcase_02 AC 71 ms
71,192 KB
testcase_03 AC 72 ms
71,236 KB
testcase_04 AC 72 ms
71,264 KB
testcase_05 AC 72 ms
71,212 KB
testcase_06 AC 71 ms
71,244 KB
testcase_07 AC 71 ms
71,344 KB
testcase_08 AC 71 ms
71,340 KB
testcase_09 AC 71 ms
71,216 KB
testcase_10 AC 70 ms
71,208 KB
testcase_11 AC 80 ms
76,248 KB
testcase_12 AC 71 ms
71,148 KB
testcase_13 AC 78 ms
76,128 KB
testcase_14 AC 79 ms
76,024 KB
testcase_15 AC 138 ms
89,348 KB
testcase_16 AC 121 ms
87,584 KB
testcase_17 AC 134 ms
89,956 KB
testcase_18 AC 135 ms
95,444 KB
testcase_19 WA -
testcase_20 AC 187 ms
96,876 KB
testcase_21 AC 182 ms
96,760 KB
testcase_22 AC 186 ms
96,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))


N,M,C=MI()
A=LI()
B=LI()
A.sort()
B.sort()


import bisect

ans=0
for i in range(N):
    a=A[i]
    t=(C+0.9)/a
    num=bisect.bisect_right(B,t)
    ans+=M-num
    
print('{:.10f}'.format(ans/(N*M)))
    
0