結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
|
提出日時 | 2023-03-07 08:38:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 82,788 KB |
実行使用メモリ | 107,928 KB |
最終ジャッジ日時 | 2025-03-03 12:07:41 |
合計ジャッジ時間 | 6,244 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 28 |
ソースコード
N = int(input()) L = list(map(int, input().split())) K = int(input()) def calc_bou(N, L, K): low = 0 high = max(L) for _ in range(70): mid = (low + high) / 2 cnt = 0 for i in L: cnt += i / mid if cnt < K: high = mid else: low = mid return low print(calc_bou(N, L, K))