結果

問題 No.1280 Beyond C
ユーザー 330Xs330Xs
提出日時 2022-02-06 15:55:49
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 498 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 77,716 KB
最終ジャッジ日時 2023-09-02 06:58:46
合計ジャッジ時間 6,001 ms
ジャッジサーバーID
(参考情報)
judge14 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
72,000 KB
testcase_01 AC 89 ms
71,368 KB
testcase_02 AC 89 ms
71,732 KB
testcase_03 AC 90 ms
71,624 KB
testcase_04 AC 89 ms
71,632 KB
testcase_05 AC 92 ms
71,636 KB
testcase_06 AC 90 ms
71,624 KB
testcase_07 AC 90 ms
71,716 KB
testcase_08 AC 93 ms
71,444 KB
testcase_09 AC 94 ms
71,732 KB
testcase_10 AC 91 ms
71,792 KB
testcase_11 AC 105 ms
77,576 KB
testcase_12 AC 93 ms
71,828 KB
testcase_13 AC 102 ms
77,608 KB
testcase_14 AC 104 ms
77,716 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n,m,c = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))

a = sorted(a)[::-1]
b_counter = Counter(b)
b_key = sorted(list(b_counter.keys()))[::-1]

ans = 0
for i in range(n):
    elem = c // a[i]
    if(b_key[-1] > elem):
        ans += m
    else:
        for j in range(len(b_key)):
            if(b_key[j] > elem):
                ans += b_counter[b_key[j]]
            else:
                break
print(ans / (n * m))
0