不能使用系统,那就二分查找。 const val = parseFloat(readline()); function bs(v) { const sign = v >= 0 ? 1 : -1; v = Math.abs(v); let left = 0, righ...