计蒜客 UCF Local Programming Contest 2019(Practice)D题 Circles Inside a Square
这个题算了很久呐,自己没算出来,最后还是队友教的求法如下图:然后对角线长度t=2*[(1+sqrt(2)+sqrt(3))*r]正方形面积s=t*t/2#includeusingnamespacestd;intmain(){doubler,t,s;scanf("%lf",&r);t=2*((1+sqrt(2)+sqrt(3))*r);s=t*t/2;printf("%.5lf\n",s);//sy