結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー |
![]() |
提出日時 | 2015-02-25 23:19:44 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 9,116 KB |
実行使用メモリ | 41,204 KB |
最終ジャッジ日時 | 2025-03-03 10:15:37 |
合計ジャッジ時間 | 13,057 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
N=int(raw_input()) L=map(int,raw_input().split()) K=int(raw_input()) left=0.0000000001 right=1000000001 while left+0.0000000001<right: mid=(left+right)/2 cnt=0 for l in L: cnt+=int(l/mid) if cnt>=K: left=mid else: right=mid print left