結果

問題 No.1280 Beyond C
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2020-11-07 17:50:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 94,788 KB
最終ジャッジ日時 2023-09-29 20:41:24
合計ジャッジ時間 3,349 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,472 KB
testcase_01 AC 63 ms
71,532 KB
testcase_02 AC 64 ms
71,332 KB
testcase_03 AC 64 ms
71,336 KB
testcase_04 AC 64 ms
71,404 KB
testcase_05 AC 67 ms
71,528 KB
testcase_06 AC 65 ms
71,468 KB
testcase_07 AC 65 ms
71,540 KB
testcase_08 AC 65 ms
71,404 KB
testcase_09 AC 62 ms
71,192 KB
testcase_10 AC 64 ms
71,444 KB
testcase_11 AC 68 ms
76,080 KB
testcase_12 AC 61 ms
71,432 KB
testcase_13 AC 64 ms
75,852 KB
testcase_14 AC 63 ms
75,712 KB
testcase_15 AC 108 ms
91,716 KB
testcase_16 AC 97 ms
89,328 KB
testcase_17 AC 110 ms
92,628 KB
testcase_18 AC 103 ms
94,788 KB
testcase_19 AC 103 ms
94,752 KB
testcase_20 AC 141 ms
94,520 KB
testcase_21 AC 137 ms
94,480 KB
testcase_22 AC 144 ms
94,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,c = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
count = 0
now = m-1
a.sort()
b.sort()

for i in a:
    while now >= 0 and i*b[now] > c:
        now -= 1
    count += m-now-1
print(count/(m*n))
0