Problem E
Pollution Solution
As an employee of Aqueous Contaminate Management, you must monitor the pollution that gets dumped (sometimes accidentally, sometimes purposefully) into rivers, lakes and oceans. One of your jobs is to measure the impact of the pollution on various ecosystems in the water such as coral reefs, spawning grounds, and so on.
![\includegraphics[width=0.6\textwidth ]{sample}](/problems/pollution/file/statement/en/img-0001.png)
The model you use in your analysis is illustrated in
Figure 1. The shoreline (the horizontal line in the
figure) lies on the
Input
The input consists of a single test case. A test case starts
with a line containing two integers
Output
Display the area of the polygon that falls within the
semicircle centered at the origin with radius
Sample Input 1 | Sample Output 1 |
---|---|
6 10 -8 2 8 2 8 14 0 14 0 6 -8 14 |
101.576437872 |