結果

問題 No.1280 Beyond C
ユーザー ThetaTheta
提出日時 2022-11-16 17:11:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 26,572 KB
最終ジャッジ日時 2023-10-17 15:27:40
合計ジャッジ時間 4,412 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,044 KB
testcase_01 AC 28 ms
10,044 KB
testcase_02 AC 30 ms
10,044 KB
testcase_03 AC 30 ms
10,044 KB
testcase_04 AC 30 ms
10,044 KB
testcase_05 AC 28 ms
10,044 KB
testcase_06 AC 28 ms
10,044 KB
testcase_07 AC 28 ms
10,044 KB
testcase_08 AC 29 ms
10,044 KB
testcase_09 AC 27 ms
10,044 KB
testcase_10 AC 28 ms
10,044 KB
testcase_11 AC 29 ms
10,160 KB
testcase_12 AC 29 ms
10,076 KB
testcase_13 AC 28 ms
10,164 KB
testcase_14 AC 29 ms
10,164 KB
testcase_15 AC 133 ms
18,700 KB
testcase_16 AC 94 ms
18,568 KB
testcase_17 AC 116 ms
19,620 KB
testcase_18 AC 185 ms
26,572 KB
testcase_19 WA -
testcase_20 AC 258 ms
25,012 KB
testcase_21 AC 248 ms
25,012 KB
testcase_22 AC 254 ms
25,012 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right


def main():
    N, M, C = map(int, input().split())
    a = list(map(int, input().split()))
    b = list(map(int, input().split()))

    a.sort()
    b.sort()

    patterns = 0

    for a_elm in a:
        idx = bisect_right(b, C/a_elm)
        patterns += len(b) - idx

    print(patterns / (N*M))


if __name__ == "__main__":
    main()
0