Problem B
Rectangle Area
Given diagonal corners of a rectangle with sides parallel to
the
![\includegraphics[width=0.75\textwidth ]{area}](/problems/rectanglearea/file/statement/en/img-0001.png)
Input
The single line of input contains four real numbers
Output
Output a single line with a single real number, which is the
area of the given rectangle. This number must be accurate to
within
Sample Input 1 | Sample Output 1 |
---|---|
0.0 0.0 3.0 4.0 |
12.000 |
Sample Input 2 | Sample Output 2 |
---|---|
5.2 -4.64 -3.47 2.2 |
59.303 |