結果
| 問題 |
No.67 よくある棒を切る問題 (1)
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2022-06-02 15:31:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 39,060 KB |
| 最終ジャッジ日時 | 2025-03-03 11:58:39 |
| 合計ジャッジ時間 | 12,994 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 29 |
ソースコード
n=int(input())
ns=list(map(int,input().split()))
k=int(input())
def cal(x):
cnt=0
for i in range(n):
cnt+= ns[i] // x
return cnt
l=0
r=10**10
while r-l > 10**-9:
mid= (l+r) / 2
if cal(mid) < k:
r=mid
else:
l=mid
print(r)
lllllll88938494