算法模板 /* 查找函数最大值*/ #define target 1e-6 // 精度 // 定义一个计算函数 Caculate int BinarySearch(double low, double high) { double left, right; double mid, mid_mid; left = low