結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー | 1101 higoo |
提出日時 | 2021-03-06 12:51:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 872 ms / 5,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 267 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 107,648 KB |
最終ジャッジ日時 | 2024-11-08 13:33:46 |
合計ジャッジ時間 | 14,820 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
N = int(input()) L = list(map(int,input().split())) K = int(input()) l = 0 r = sum(L)/K while r-l >10**(-10) and (r-l)/r > 10**(-10): mid = (l+r)/2 ans = 0 for num in L: ans += num//mid if ans >= K: l = mid else: r = mid print(l)