結果

問題 No.1280 Beyond C
ユーザー aqua_tenhouaqua_tenhou
提出日時 2020-11-06 21:40:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 246 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 23,208 KB
最終ジャッジ日時 2023-09-29 18:27:18
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,884 KB
testcase_01 AC 15 ms
7,884 KB
testcase_02 AC 14 ms
7,860 KB
testcase_03 AC 14 ms
7,916 KB
testcase_04 AC 15 ms
7,928 KB
testcase_05 AC 14 ms
7,928 KB
testcase_06 AC 13 ms
7,892 KB
testcase_07 AC 13 ms
7,916 KB
testcase_08 AC 13 ms
7,920 KB
testcase_09 AC 13 ms
7,916 KB
testcase_10 AC 14 ms
7,924 KB
testcase_11 AC 14 ms
7,928 KB
testcase_12 AC 14 ms
7,896 KB
testcase_13 AC 14 ms
7,860 KB
testcase_14 AC 15 ms
7,852 KB
testcase_15 AC 90 ms
17,152 KB
testcase_16 AC 65 ms
16,700 KB
testcase_17 AC 80 ms
17,672 KB
testcase_18 AC 137 ms
23,208 KB
testcase_19 AC 138 ms
23,116 KB
testcase_20 AC 178 ms
23,060 KB
testcase_21 AC 170 ms
23,152 KB
testcase_22 AC 168 ms
23,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

n,m,c = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
b = sorted(b)

ans = 0
for x in a:
    k = c//x
    p = bisect.bisect_right(b,k)
    ans += m-p
    #print(k,p)
print(ans/(n*m))
0