結果

問題 No.1280 Beyond C
ユーザー ygd.ygd.
提出日時 2020-11-06 21:36:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 96,672 KB
最終ジャッジ日時 2023-09-29 18:20:57
合計ジャッジ時間 3,903 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,852 KB
testcase_01 AC 70 ms
72,056 KB
testcase_02 AC 71 ms
71,704 KB
testcase_03 AC 70 ms
71,636 KB
testcase_04 AC 70 ms
71,520 KB
testcase_05 AC 72 ms
71,412 KB
testcase_06 AC 70 ms
71,672 KB
testcase_07 AC 71 ms
72,004 KB
testcase_08 AC 70 ms
71,956 KB
testcase_09 AC 71 ms
71,856 KB
testcase_10 AC 71 ms
71,928 KB
testcase_11 AC 80 ms
76,672 KB
testcase_12 AC 71 ms
71,808 KB
testcase_13 AC 77 ms
76,996 KB
testcase_14 AC 79 ms
76,648 KB
testcase_15 AC 140 ms
91,228 KB
testcase_16 AC 118 ms
88,676 KB
testcase_17 AC 132 ms
91,616 KB
testcase_18 AC 150 ms
96,044 KB
testcase_19 WA -
testcase_20 AC 189 ms
96,672 KB
testcase_21 AC 169 ms
96,568 KB
testcase_22 AC 192 ms
96,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N,M,C = map(int,input().split()); Error = pow(10,-9)
A = list(map(int,input().split()))
B = list(map(int,input().split()))
B.sort()
ALL = N*M
cnt = 0
for i in range(N):
  need = C/A[i] + Error
  ok = M - bisect.bisect_right(B,need)
  cnt += ok
  #print(ok)
ans = cnt/ALL
print(ans)
0