結果
| 問題 |
No.1280 Beyond C
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-20 21:08:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 139 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 277 ms |
| コンパイル使用メモリ | 82,900 KB |
| 実行使用メモリ | 98,004 KB |
| 最終ジャッジ日時 | 2025-03-20 21:09:00 |
| 合計ジャッジ時間 | 2,768 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import bisect
n, m, c = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
b.sort()
total = 0
for ai in a:
x = c // ai
threshold = x + 1
pos = bisect.bisect_left(b, threshold)
total += m - pos
probability = total / (n * m)
print("{0:.10f}".format(probability))
lam6er