結果

問題 No.1280 Beyond C
ユーザー 👑 tamatotamato
提出日時 2020-11-06 21:27:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 397 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 87,496 KB
実行使用メモリ 96,132 KB
最終ジャッジ日時 2023-09-29 18:11:28
合計ジャッジ時間 3,817 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,968 KB
testcase_01 AC 74 ms
71,624 KB
testcase_02 AC 75 ms
71,748 KB
testcase_03 AC 74 ms
71,540 KB
testcase_04 AC 75 ms
71,836 KB
testcase_05 AC 74 ms
71,760 KB
testcase_06 AC 73 ms
71,988 KB
testcase_07 AC 76 ms
71,752 KB
testcase_08 AC 74 ms
71,952 KB
testcase_09 AC 73 ms
71,592 KB
testcase_10 AC 72 ms
72,028 KB
testcase_11 AC 81 ms
76,520 KB
testcase_12 AC 74 ms
72,036 KB
testcase_13 AC 78 ms
76,596 KB
testcase_14 AC 82 ms
76,496 KB
testcase_15 AC 131 ms
90,048 KB
testcase_16 AC 116 ms
87,724 KB
testcase_17 AC 127 ms
90,444 KB
testcase_18 AC 138 ms
95,404 KB
testcase_19 AC 138 ms
95,664 KB
testcase_20 AC 175 ms
96,132 KB
testcase_21 AC 170 ms
96,072 KB
testcase_22 AC 173 ms
96,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    from bisect import bisect_right
    input = sys.stdin.readline

    N, M, C = map(int, input().split())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))
    B.sort()

    cnt = 0
    for a in A:
        cnt += M - bisect_right(B, C // a)
    print(cnt / (N * M))


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