結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
![]() |
提出日時 | 2019-09-23 20:59:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 1,589 ms |
コンパイル使用メモリ | 81,584 KB |
実行使用メモリ | 108,328 KB |
最終ジャッジ日時 | 2025-03-03 11:28:00 |
合計ジャッジ時間 | 13,173 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 4 |
ソースコード
N=int(input()) A=list(map(int,input().split())) K=int(input()) H=10**9 L=0 for i in range(50): M=(H+L)/2 ans=0 for l in A: ans+=l//M if ans<K: H=M else: L=M print(M)