結果
| 問題 |
No.1280 Beyond C
|
| コンテスト | |
| ユーザー |
330Xs
|
| 提出日時 | 2022-02-06 15:55:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 97,536 KB |
| 最終ジャッジ日時 | 2024-06-11 13:46:18 |
| 合計ジャッジ時間 | 4,737 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 TLE * 1 -- * 7 |
ソースコード
from collections import Counter
n,m,c = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
a = sorted(a)[::-1]
b_counter = Counter(b)
b_key = sorted(list(b_counter.keys()))[::-1]
ans = 0
for i in range(n):
elem = c // a[i]
if(b_key[-1] > elem):
ans += m
else:
for j in range(len(b_key)):
if(b_key[j] > elem):
ans += b_counter[b_key[j]]
else:
break
print(ans / (n * m))
330Xs