結果

問題 No.1280 Beyond C
ユーザー 小野寺健小野寺健
提出日時 2021-05-29 15:04:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,920 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 26,332 KB
最終ジャッジ日時 2024-11-07 23:04:45
合計ジャッジ時間 13,415 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 += Fraction(M-bisect.bisect_right(B, c), (N*M))
print(float(p))
0