- C20250278's blog
- 6666
- @ 2023-3-6 9:26:39
#include<bits/stdc++.h>
using namespace std;
int main(){
	//solve sqrt(x) 精度0.0001
	double x=26;
	
	double L=0,R=x;
	while(R-L>0.001){
		double M=(L+R)/2;
		if (M*M>x) R=M;
		else L=M;
	    cout<<fixed<<setprecision(8)<<L<<" "<<R<<endl;
    }
}
