欧几里得几何题解
分析:
1.要求三个圆互相不包含
如果以最长的边为半径画圆,一定会把期中一个点包含,不可以
2.如果以第二长的半径做圆,那么做出来的圆就是最大的。有俩个
#include <iostream> #include <cmath> #include <iomanip> #include <algorithm> using namespace std; int main() { int t; cin>>t; while(t--) { double res,l[3]; cin>>l[0]>>l[1]>>l[2]; sort(l,l+3); double pi=acos(-1.0); res=pi*(pow(l[1],2)+pow(l[2]-l[1],2)); printf("%.12f\n",res); } return 0; }