結果

問題 No.1280 Beyond C
ユーザー taiga000629taiga000629
提出日時 2020-11-06 21:41:38
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 95,692 KB
最終ジャッジ日時 2023-09-29 18:28:50
合計ジャッジ時間 3,397 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,452 KB
testcase_01 AC 64 ms
71,488 KB
testcase_02 AC 62 ms
71,068 KB
testcase_03 AC 66 ms
71,332 KB
testcase_04 AC 62 ms
71,440 KB
testcase_05 AC 66 ms
71,396 KB
testcase_06 AC 62 ms
71,388 KB
testcase_07 AC 64 ms
71,512 KB
testcase_08 AC 66 ms
71,524 KB
testcase_09 AC 64 ms
71,228 KB
testcase_10 AC 65 ms
71,408 KB
testcase_11 AC 66 ms
75,912 KB
testcase_12 AC 66 ms
71,056 KB
testcase_13 AC 70 ms
75,636 KB
testcase_14 AC 70 ms
75,692 KB
testcase_15 AC 112 ms
91,508 KB
testcase_16 AC 106 ms
89,076 KB
testcase_17 AC 112 ms
91,980 KB
testcase_18 AC 106 ms
95,392 KB
testcase_19 AC 104 ms
95,692 KB
testcase_20 AC 141 ms
95,616 KB
testcase_21 AC 142 ms
95,624 KB
testcase_22 AC 141 ms
95,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m,c=map(int,input().split())
a=sorted(list(map(int,input().split())),reverse=True)
b=sorted(list(map(int,input().split())))
now=0
ans=0
for i in range(n):
    while now<m and a[i]*b[now]<=c:
        now+=1

    ans+=m-now

print(ans/(n*m))


0