結果

問題 No.1280 Beyond C
ユーザー KudeKude
提出日時 2020-11-06 21:32:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 256 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 94,896 KB
最終ジャッジ日時 2023-09-29 18:17:41
合計ジャッジ時間 3,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,048 KB
testcase_01 AC 66 ms
71,384 KB
testcase_02 AC 67 ms
71,048 KB
testcase_03 AC 68 ms
71,472 KB
testcase_04 AC 64 ms
71,012 KB
testcase_05 AC 65 ms
71,132 KB
testcase_06 AC 67 ms
71,388 KB
testcase_07 AC 65 ms
71,428 KB
testcase_08 AC 64 ms
71,240 KB
testcase_09 AC 64 ms
71,052 KB
testcase_10 AC 63 ms
71,052 KB
testcase_11 AC 70 ms
75,728 KB
testcase_12 AC 67 ms
71,268 KB
testcase_13 AC 68 ms
75,752 KB
testcase_14 AC 67 ms
75,740 KB
testcase_15 AC 122 ms
90,748 KB
testcase_16 AC 109 ms
88,284 KB
testcase_17 AC 113 ms
91,264 KB
testcase_18 AC 108 ms
94,704 KB
testcase_19 AC 108 ms
94,896 KB
testcase_20 AC 140 ms
94,896 KB
testcase_21 AC 140 ms
94,852 KB
testcase_22 AC 145 ms
94,728 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, c = map(int, input().split())
a = sorted(map(int, input().split()))
b = sorted(map(int, input().split()))
cnt = 0
i = 0
for y in reversed(b):
    while i < n and a[i] * y <= c:
        i += 1
    cnt += i
tot = n * m
cnt = tot - cnt
print(cnt / tot)
0