函数
设矩形高x S=2rx+0.5πr^2 a=πr+2x+2r S=r(a-πr-ar)+0.5r^2 =-(π+a-0.5)r^2+ar 当r=a/(π+a-0.5)时,S取最大值