結果

問題 No.1280 Beyond C
ユーザー 小野寺健小野寺健
提出日時 2021-05-29 15:07:30
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 245 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 26,716 KB
最終ジャッジ日時 2024-11-07 23:07:16
合計ジャッジ時間 11,701 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
from fractions import Fraction

N, M, C = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
B.sort()

p = 0
for a in A:
    c = Fraction(C, a)
    p += M-bisect.bisect_right(B, c) / (N*M)
print(float(p))
0