結果

問題 No.1280 Beyond C
ユーザー 37zigen37zigen
提出日時 2020-11-06 22:33:17
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 10,656 KB
実行使用メモリ 24,628 KB
最終ジャッジ日時 2023-09-29 19:13:23
合計ジャッジ時間 2,951 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,932 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 15 ms
7,788 KB
testcase_03 AC 16 ms
7,780 KB
testcase_04 AC 15 ms
7,788 KB
testcase_05 AC 15 ms
7,768 KB
testcase_06 AC 15 ms
7,848 KB
testcase_07 AC 16 ms
7,708 KB
testcase_08 AC 15 ms
7,840 KB
testcase_09 AC 15 ms
7,836 KB
testcase_10 AC 15 ms
7,840 KB
testcase_11 AC 16 ms
7,800 KB
testcase_12 AC 15 ms
7,768 KB
testcase_13 AC 16 ms
7,796 KB
testcase_14 AC 16 ms
7,784 KB
testcase_15 AC 101 ms
16,776 KB
testcase_16 AC 73 ms
16,604 KB
testcase_17 AC 101 ms
17,840 KB
testcase_18 AC 105 ms
24,572 KB
testcase_19 AC 120 ms
24,628 KB
testcase_20 AC 191 ms
23,040 KB
testcase_21 AC 188 ms
23,108 KB
testcase_22 AC 191 ms
23,196 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,C=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
A.sort()
B.sort()
p=M-1
numerator=0
for a in A:
    while (p>=0 and B[p]*a>C):
        p-=1
    numerator+=M-1-p
print(numerator/(N*M))
0