結果

問題 No.1280 Beyond C
ユーザー O2MTO2MT
提出日時 2020-11-17 19:24:33
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 326 bytes
コンパイル時間 1,538 ms
コンパイル使用メモリ 86,708 KB
実行使用メモリ 99,236 KB
最終ジャッジ日時 2023-09-30 14:23:01
合計ジャッジ時間 6,970 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,156 KB
testcase_01 AC 73 ms
71,164 KB
testcase_02 AC 73 ms
71,308 KB
testcase_03 AC 74 ms
71,336 KB
testcase_04 AC 73 ms
71,224 KB
testcase_05 AC 74 ms
71,316 KB
testcase_06 AC 74 ms
70,980 KB
testcase_07 AC 74 ms
71,244 KB
testcase_08 AC 72 ms
71,348 KB
testcase_09 AC 73 ms
71,236 KB
testcase_10 AC 71 ms
71,228 KB
testcase_11 AC 81 ms
76,092 KB
testcase_12 AC 73 ms
71,300 KB
testcase_13 AC 77 ms
76,012 KB
testcase_14 AC 81 ms
76,148 KB
testcase_15 AC 152 ms
90,456 KB
testcase_16 AC 129 ms
88,108 KB
testcase_17 AC 145 ms
90,908 KB
testcase_18 TLE -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left
N,M,C = map(int,input().split())
A = list(map(int,input().split()))
B = list(map(int,input().split()))

A.sort()
B.sort()
count = 0
for i in range(N):
    b = bisect_left(B,C/A[i])
    for j in range(b,M):
        if A[i]*B[j] > C:
            count += (M-j)
            break
print(count/(N*M))
0