結果

問題 No.1280 Beyond C
ユーザー hiragnhiragn
提出日時 2022-12-02 16:56:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 188 ms / 2,000 ms
コード長 307 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 26,004 KB
最終ジャッジ日時 2024-04-18 00:49:46
合計ジャッジ時間 3,112 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
10,752 KB
testcase_01 AC 32 ms
10,880 KB
testcase_02 AC 30 ms
10,880 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 32 ms
10,880 KB
testcase_06 AC 32 ms
10,880 KB
testcase_07 AC 31 ms
10,880 KB
testcase_08 AC 32 ms
10,880 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 30 ms
10,752 KB
testcase_11 AC 31 ms
10,752 KB
testcase_12 AC 31 ms
10,752 KB
testcase_13 AC 31 ms
10,752 KB
testcase_14 AC 31 ms
10,752 KB
testcase_15 AC 108 ms
19,800 KB
testcase_16 AC 88 ms
19,328 KB
testcase_17 AC 105 ms
20,536 KB
testcase_18 AC 138 ms
26,000 KB
testcase_19 AC 141 ms
25,872 KB
testcase_20 AC 188 ms
26,004 KB
testcase_21 AC 185 ms
25,940 KB
testcase_22 AC 181 ms
25,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left


def main():
    n, m, c = map(int, input().split())
    arr = list(map(int, input().split()))
    b = list(map(int, input().split()))
    b.sort()

    ans = 1 - sum([bisect_left(b, c // a + 1) for a in arr]) / (n * m)
    print(ans)


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