結果
| 問題 | No.1280 Beyond C |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-11-16 17:11:05 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 373 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 30,016 KB |
| 最終ジャッジ日時 | 2026-08-29 14:20:19 |
| 合計ジャッジ時間 | 5,514 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()