#include #define rep(i,a,b) for(int i=int(a);i<=int(b);++i) using namespace std; templatevoid pr(A a){cout << (a) << endl;} templatevoid pr(A a,B b){cout << a << " " ;pr(b);} templatevoid pr(A a,B b,C c){cout << a << " " ;pr(b,c);} templatevoid pr(A a,B b,C c,D d){cout << a << " " ;pr(b,c,d);} typedef long long ll; typedef pair l_l; typedef pair i_i; int INF=numeric_limits::max(); // for(int j=0;j> p >> q; double x = 100*q + p; int cnt=10000000; while(abs(func(x,p,q))>0.000001) { x = x - func(x,p,q) / dfunc(x,q); cnt--; if(cnt<0) { break; } } printf("%8.8f\n", x); return 0; }