結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2024-09-20 09:51:26 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 82,040 KB |
実行使用メモリ | 109,284 KB |
最終ジャッジ日時 | 2025-03-03 12:13:24 |
合計ジャッジ時間 | 13,205 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
n=int(input()) L=list(map(int,input().split())) L.sort() k=int(input()) def check(x): cnt=0 for l in L: cnt+=l//x return cnt>=k ok,ng=0,10**18 while abs(ng-ok)>pow(10,-9): mid=(ok+ng)/2 if check(mid):ok=mid else:ng=mid print(ok)