結果
問題 | No.1280 Beyond C |
ユーザー |
|
提出日時 | 2022-11-16 17:11:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 124 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 25,880 KB |
最終ジャッジ日時 | 2024-09-17 13:09:05 |
合計ジャッジ時間 | 3,431 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 WA * 1 |
ソースコード
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()