結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2022-06-02 15:32:57 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 264 ms |
コンパイル使用メモリ | 82,804 KB |
実行使用メモリ | 109,700 KB |
最終ジャッジ日時 | 2025-03-03 11:58:47 |
合計ジャッジ時間 | 12,994 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)