Problem G
Grazed Grains
This year, there have been unusually many UFO sightings reported. Nobody knows if they are caused by optical illusions, weather phenomena, or secret technology being tested by foreign powers (terrestrial or not). UFO enthusiasts across the world rejoice, and speculations run wild. But someone who is not impressed is the farmer Celeste. Her large grain field has repeatedly been used as a landing site by the UFOs, destroying her crops. Celeste would like to bring whoever is responsible to justice, but before she can do so she must assess the damage caused by the unidentified flying offenders.
In total
Input
The first line of input contains one integer
Output
Output the total area covered by the crop circles in the
input, with a relative error of at most
Sample Input 1 | Sample Output 1 |
---|---|
1 0 0 1 |
3.1415926535 |
Sample Input 2 | Sample Output 2 |
---|---|
4 0 0 2 1 0 1 2 2 2 10 10 1 |
25.991148 |