結果
| 問題 | No.67 よくある棒を切る問題 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-17 16:21:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 743 ms / 5,000 ms |
| + 83µs | |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 120,128 KB |
| 最終ジャッジ日時 | 2026-07-12 07:00:06 |
| 合計ジャッジ時間 | 16,907 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
import sys
read=sys.stdin.buffer.read
readline=sys.stdin.buffer.readline
N,*L,K=map(int,read().split())
l,r=0,10**9
for _ in range(100):
m=(l+r)/2
cnt=sum(l//m for l in L)
if cnt>=K:l=m
else:r=m
print("{:.15f}".format(l))