結果

問題 No.1280 Beyond C
ユーザー uni_pythonuni_python
提出日時 2020-11-06 21:39:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 97,044 KB
最終ジャッジ日時 2023-09-29 18:25:58
合計ジャッジ時間 3,963 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,384 KB
testcase_01 AC 63 ms
71,476 KB
testcase_02 AC 63 ms
71,416 KB
testcase_03 AC 65 ms
71,300 KB
testcase_04 AC 63 ms
71,388 KB
testcase_05 AC 64 ms
71,368 KB
testcase_06 AC 61 ms
71,328 KB
testcase_07 AC 64 ms
70,984 KB
testcase_08 AC 63 ms
71,404 KB
testcase_09 AC 63 ms
71,192 KB
testcase_10 AC 64 ms
71,440 KB
testcase_11 AC 69 ms
76,224 KB
testcase_12 AC 63 ms
71,260 KB
testcase_13 AC 70 ms
76,240 KB
testcase_14 AC 74 ms
76,448 KB
testcase_15 AC 147 ms
89,700 KB
testcase_16 AC 114 ms
87,168 KB
testcase_17 AC 126 ms
90,100 KB
testcase_18 AC 120 ms
95,440 KB
testcase_19 WA -
testcase_20 AC 196 ms
96,840 KB
testcase_21 AC 171 ms
96,792 KB
testcase_22 AC 192 ms
97,044 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/a
    num=bisect.bisect_right(B,t)
    ans+=M-num
    
print('{:.10f}'.format(ans/(N*M)))
    
0