結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,520 KB
testcase_01 AC 70 ms
71,480 KB
testcase_02 AC 70 ms
71,448 KB
testcase_03 AC 71 ms
71,568 KB
testcase_04 AC 70 ms
71,492 KB
testcase_05 AC 70 ms
71,636 KB
testcase_06 AC 70 ms
71,304 KB
testcase_07 AC 70 ms
71,116 KB
testcase_08 AC 70 ms
71,392 KB
testcase_09 AC 71 ms
71,388 KB
testcase_10 AC 70 ms
71,280 KB
testcase_11 AC 78 ms
76,324 KB
testcase_12 AC 70 ms
71,468 KB
testcase_13 AC 75 ms
76,360 KB
testcase_14 AC 78 ms
76,484 KB
testcase_15 AC 137 ms
89,572 KB
testcase_16 AC 123 ms
87,996 KB
testcase_17 AC 134 ms
90,068 KB
testcase_18 AC 132 ms
95,492 KB
testcase_19 WA -
testcase_20 AC 189 ms
96,964 KB
testcase_21 AC 184 ms
96,920 KB
testcase_22 AC 187 ms
96,936 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.1)/a
    num=bisect.bisect_right(B,t)
    ans+=M-num
    
print(ans/(N*M))
    
0