結果
問題 |
No.67 よくある棒を切る問題 (1)
|
ユーザー |
|
提出日時 | 2022-10-10 09:30:11 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 110,056 KB |
最終ジャッジ日時 | 2025-03-03 12:01:59 |
合計ジャッジ時間 | 13,104 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 29 |
ソースコード
from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) L = list(map(int,input().split())) K = int(input()) def is_ok(x): tmp = 0 for l in L: tmp += l//x return tmp>=K x = 0.001 y = 10**18 while y-x>0.0000000001: mid = (y+x)/2 if is_ok(mid): x = mid else: y = mid print(x)