結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,280 KB
testcase_01 AC 71 ms
71,624 KB
testcase_02 AC 70 ms
71,092 KB
testcase_03 AC 72 ms
71,284 KB
testcase_04 AC 70 ms
71,456 KB
testcase_05 AC 72 ms
71,588 KB
testcase_06 AC 72 ms
71,452 KB
testcase_07 AC 70 ms
71,516 KB
testcase_08 AC 71 ms
71,316 KB
testcase_09 AC 71 ms
71,600 KB
testcase_10 AC 71 ms
71,096 KB
testcase_11 AC 77 ms
76,356 KB
testcase_12 AC 71 ms
71,436 KB
testcase_13 AC 76 ms
76,164 KB
testcase_14 AC 78 ms
76,348 KB
testcase_15 AC 144 ms
89,664 KB
testcase_16 AC 122 ms
87,408 KB
testcase_17 AC 140 ms
90,076 KB
testcase_18 AC 133 ms
95,660 KB
testcase_19 WA -
testcase_20 AC 204 ms
96,920 KB
testcase_21 AC 184 ms
96,800 KB
testcase_22 AC 204 ms
96,876 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