We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc9d165 commit b00463fCopy full SHA for b00463f
kattis/Suspension Bridges/suspensionbridges.vn.py
@@ -21,7 +21,7 @@ def l(epsilon):
21
# Fancy math. We could just iterate 50 times
22
# d_l/d_epsilon to figure out tol_epsilon(tol_l)
23
tol_epsilon = (tol ** 3) / (2 * s)
24
-iterations = ceil(log2(1/tol_epsilon - 2))
+iterations = ceil(log2(1/tol_epsilon))
25
# Btw, for binary search the interval size is (upper_bound - lower_bound) / step
26
# step = 1 for integers.
27
0 commit comments