結果

問題 No.1280 Beyond C
コンテスト
ユーザー flippergo
提出日時 2020-12-22 18:41:38
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 265 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 112 ms
コンパイル使用メモリ 85,424 KB
実行使用メモリ 112,548 KB
最終ジャッジ日時 2026-04-09 19:31:26
合計ジャッジ時間 2,682 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from bisect import bisect_right
N,M,C = map(int,input().split())
A = sorted(list(map(int,input().split())))
B = sorted(list(map(int,input().split())))
cnt = 0
for i in range(N):
    a = A[i]
    b = C//a
    ind = bisect_right(B,b)
    cnt += M-ind
print(cnt/(N*M))
0