二分发求解 import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ Double num = scan.nextDouble(); double left = 0, right = num, mid = 0; //一定要注意边界条件,输入的num可能是负数 将...