結果
| 問題 | No.1280 Beyond C |
| コンテスト | |
| ユーザー |
r_ishida
|
| 提出日時 | 2020-12-30 06:10:20 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 164 ms / 2,000 ms |
| + 344µs | |
| コード長 | 559 bytes |
| 記録 | |
| コンパイル時間 | 74 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 25,804 KB |
| 最終ジャッジ日時 | 2026-10-14 11:05:49 |
| 合計ジャッジ時間 | 3,628 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
n,m,c = MI()
a = sorted(LI())
b = sorted(LI())
j = m-1
cnt = 0
for i in range(n):
cnt += m-1-j
while j >= 0:
if a[i]*b[j] > c:
cnt += 1
j -= 1
else:
break
print(cnt/(m*n))
r_ishida