题目:Can you solve this equation?
连接:杭电HNUST专题联练习 1000
思路:对所给函数直接求一阶导和二阶导可知,函数在0~100是单调递增。所以可直接用二分法求解
#include <stdio.h>
#include <math.h>
int main()
{
int T;
double x1, x2, n, mid,ans1,ans2, ans;
scanf("%d", &T);
while(T--)
{
x1 = 0;
x2 = 100;
scanf("%lf"