結果

問題 No.1280 Beyond C
ユーザー trineutrontrineutron
提出日時 2020-11-21 16:37:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 87,388 KB
実行使用メモリ 95,824 KB
最終ジャッジ日時 2023-09-30 21:58:59
合計ジャッジ時間 3,673 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,380 KB
testcase_01 AC 75 ms
71,416 KB
testcase_02 AC 73 ms
71,120 KB
testcase_03 AC 72 ms
71,500 KB
testcase_04 AC 71 ms
71,436 KB
testcase_05 AC 72 ms
71,300 KB
testcase_06 AC 72 ms
71,416 KB
testcase_07 AC 71 ms
71,512 KB
testcase_08 AC 73 ms
71,552 KB
testcase_09 AC 73 ms
71,364 KB
testcase_10 AC 72 ms
71,176 KB
testcase_11 AC 78 ms
75,784 KB
testcase_12 AC 72 ms
71,348 KB
testcase_13 AC 75 ms
75,872 KB
testcase_14 AC 75 ms
75,972 KB
testcase_15 AC 121 ms
91,928 KB
testcase_16 AC 114 ms
88,900 KB
testcase_17 AC 122 ms
92,140 KB
testcase_18 AC 117 ms
95,516 KB
testcase_19 AC 119 ms
95,428 KB
testcase_20 AC 159 ms
95,704 KB
testcase_21 AC 151 ms
95,824 KB
testcase_22 AC 152 ms
95,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m, c = map(int, input().split())
a = sorted(list(map(int, input().split())))
b = sorted(list(map(int, input().split())), reverse=True)
ans = 0
index = 0
for x in a:
    while index < m and x * b[index] > c:
        index += 1
    ans += index
print(ans / (n * m))
0