結果

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

ソースコード

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(p)
0