Here is the problem statement
http://www.spoj.com/problems/FENCE1/
It is obvious that we can obtain the biggest area with formaing a half cyrcle.
As shown in the picture, the yellow part is the area we get and the black part is the wall.
The formula for calculating the area of a cyrcle is pi*r*r. Just because its a half cyccle we need to calculate (pi*r*r)/2
http://www.spoj.com/problems/FENCE1/
It is obvious that we can obtain the biggest area with formaing a half cyrcle.
As shown in the picture, the yellow part is the area we get and the black part is the wall.
The formula for calculating the area of a cyrcle is pi*r*r. Just because its a half cyccle we need to calculate (pi*r*r)/2
How can you say that the maximum area will be formed by a semi-circle and not any other shape?
ReplyDeleteHere you can read about it http://mathforum.org/library/drmath/view/53668.html
Delete