結果
問題 | No.1280 Beyond C |
ユーザー |
|
提出日時 | 2021-12-27 19:39:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 553 ms / 2,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 25,872 KB |
最終ジャッジ日時 | 2024-10-01 06:22:16 |
合計ジャッジ時間 | 4,456 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
N,M,C = map(int,input().split()) a = list(map(int,input().split())) b = list(map(int,input().split())) a.sort() b.sort() def tansaku(x): if x * b[-1] <= C: return M end = M-1 start = -1 while end - start > 1: mid = (start + end) // 2 if x * b[mid] > C: end = mid else: start = mid return end ans = 0 for i in a: ans += M - tansaku(i) print(ans / (N * M))