結果
| 問題 |
No.67 よくある棒を切る問題 (1)
|
| コンテスト | |
| ユーザー |
zonzo34
|
| 提出日時 | 2021-12-09 11:26:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 1,092 ms / 5,000 ms |
| コード長 | 226 bytes |
| コンパイル時間 | 331 ms |
| コンパイル使用メモリ | 82,600 KB |
| 実行使用メモリ | 108,216 KB |
| 最終ジャッジ日時 | 2025-03-03 11:53:39 |
| 合計ジャッジ時間 | 21,593 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
N=int(input())
L=list(map(int,input().split()))
K=int(input())
ok,ng=0,10**9
for i in range(100):
md=(ok+ng)/2
temp=0
for l in L:
temp+=l//md
if K<=temp:
ok=md
else:
ng=md
print(ok)
zonzo34