結果

問題 No.1280 Beyond C
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-02-18 20:40:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 176 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 2,032 ms
コンパイル使用メモリ 86,624 KB
実行使用メモリ 95,860 KB
最終ジャッジ日時 2023-10-13 04:08:14
合計ジャッジ時間 6,072 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,200 KB
testcase_01 AC 76 ms
71,128 KB
testcase_02 AC 74 ms
71,168 KB
testcase_03 AC 74 ms
71,216 KB
testcase_04 AC 74 ms
71,120 KB
testcase_05 AC 73 ms
71,212 KB
testcase_06 AC 73 ms
71,208 KB
testcase_07 AC 75 ms
70,964 KB
testcase_08 AC 74 ms
71,196 KB
testcase_09 AC 75 ms
71,220 KB
testcase_10 AC 76 ms
71,020 KB
testcase_11 AC 99 ms
76,056 KB
testcase_12 AC 75 ms
71,000 KB
testcase_13 AC 78 ms
76,016 KB
testcase_14 AC 81 ms
76,008 KB
testcase_15 AC 134 ms
90,608 KB
testcase_16 AC 116 ms
87,680 KB
testcase_17 AC 129 ms
90,720 KB
testcase_18 AC 137 ms
95,016 KB
testcase_19 AC 135 ms
95,036 KB
testcase_20 AC 174 ms
95,860 KB
testcase_21 AC 172 ms
95,692 KB
testcase_22 AC 176 ms
95,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,c=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
b.sort()
from bisect import bisect_right as br
from bisect import bisect_left as bl
num=0
for x in a:
  if c%x==0:
    idx=br(b,c//x)
    num+=m-idx
  else:
    idx=bl(b,(c+x-1)//x)
    num+=m-idx
print(num/(n*m))
0