#include using namespace std; #define fx(x) cout<>r>>d; double ang=acos(r/d); double ans=r*r+d*d-2*r*d*cos(ang); fx(10)<