結果

問題 No.1280 Beyond C
ユーザー hir355hir355
提出日時 2020-11-06 22:04:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 339 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 94,572 KB
最終ジャッジ日時 2023-09-29 18:46:45
合計ジャッジ時間 4,343 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,112 KB
testcase_01 AC 69 ms
71,184 KB
testcase_02 AC 69 ms
71,112 KB
testcase_03 AC 69 ms
71,072 KB
testcase_04 AC 69 ms
71,232 KB
testcase_05 AC 69 ms
71,204 KB
testcase_06 AC 68 ms
71,380 KB
testcase_07 AC 69 ms
71,376 KB
testcase_08 AC 68 ms
71,428 KB
testcase_09 AC 69 ms
71,020 KB
testcase_10 AC 69 ms
71,292 KB
testcase_11 AC 89 ms
76,060 KB
testcase_12 AC 69 ms
71,380 KB
testcase_13 AC 75 ms
76,604 KB
testcase_14 AC 77 ms
76,088 KB
testcase_15 AC 116 ms
91,116 KB
testcase_16 AC 109 ms
89,108 KB
testcase_17 AC 120 ms
92,184 KB
testcase_18 AC 132 ms
94,444 KB
testcase_19 AC 118 ms
94,572 KB
testcase_20 AC 147 ms
94,432 KB
testcase_21 AC 147 ms
93,988 KB
testcase_22 AC 150 ms
94,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, c = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split())) + [10 ** 18]
b.sort(reverse=True)
t = 0
for x in a:
    l, r = 0, m + 1
    while r - l > 1:
        mid = (l + r) // 2
        if x * b[mid] > c:
            l = mid
        else:
            r = mid
    t += l
print(t / (n * m))
0