当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
For a sequence of real ordered pairs { <x0, y0>, <x1, y1>, …, <xn, yn> } satisfying x0 < x1 < … < xn and any sequence of integers satisfying 0 = i0 < i1 < … < im = n, define
We wish to find the minimum possible value of .
The input begins with the integers n and m (0 < m ≤ n ≤ 100), which are followed by the ordered pairs <xi, yi> (|xi|, |yi| ≤ 104, 0 ≤ i ≤ n).
The output contains only the minimum possible value of Δ. Any answers with a absolute error within 10−7 or a relative error within 10−9 are accepted.
1 1 0 0 1 1
0
sgn(x) is the sign function of x, which evaluates to for any non-zero x and 0 otherwise.
时间上限 | 内存上限 |
3000 | 131072 |