結果

問題 No.1280 Beyond C
ユーザー flippergoflippergo
提出日時 2020-12-22 18:41:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 416 ms
コンパイル使用メモリ 81,760 KB
実行使用メモリ 97,476 KB
最終ジャッジ日時 2023-10-21 13:01:37
合計ジャッジ時間 3,211 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,496 KB
testcase_01 AC 38 ms
53,492 KB
testcase_02 AC 35 ms
53,496 KB
testcase_03 AC 36 ms
53,492 KB
testcase_04 AC 36 ms
53,492 KB
testcase_05 AC 35 ms
53,492 KB
testcase_06 AC 38 ms
53,492 KB
testcase_07 AC 36 ms
53,496 KB
testcase_08 AC 36 ms
53,496 KB
testcase_09 AC 35 ms
53,496 KB
testcase_10 AC 36 ms
53,496 KB
testcase_11 AC 45 ms
61,788 KB
testcase_12 AC 36 ms
53,492 KB
testcase_13 AC 44 ms
59,712 KB
testcase_14 AC 44 ms
61,788 KB
testcase_15 AC 108 ms
90,284 KB
testcase_16 AC 91 ms
87,588 KB
testcase_17 AC 105 ms
90,576 KB
testcase_18 AC 109 ms
96,748 KB
testcase_19 AC 101 ms
96,748 KB
testcase_20 AC 158 ms
97,476 KB
testcase_21 AC 157 ms
97,476 KB
testcase_22 AC 168 ms
97,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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