結果
問題 |
No.68 よくある棒を切る問題 (2)
|
ユーザー |
|
提出日時 | 2025-06-17 16:26:40 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 386 ms |
コンパイル使用メモリ | 82,244 KB |
実行使用メモリ | 113,500 KB |
最終ジャッジ日時 | 2025-06-17 16:26:54 |
合計ジャッジ時間 | 13,457 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 9 |
ソースコード
import sys read=sys.stdin.buffer.read readline=sys.stdin.buffer.readline N=int(readline()) L=list(map(int,readline().split())) Q,*K=map(int,read().split()) for k in K: l,r=0,10**9+100 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("{:.20f}".format(l))