OCC '19 S1 - Floor Planning
View as PDFAngie is buying a house!
The floor plan of the house can be represented as two rectangles on the Cartesian plane: one from  to 
 and one from 
 to 
.
She wants to know how large her house is. Can you help her find out?
Constraints
Input Specification
The first line contains the space separated integers  (the coordinates of the first rectangle).
The second line contains the space separated integers  (the coordinates of the second rectangle).
Output Specification
Output one integer, the total area of the floor plan.
Sample Input
2 6 11 10
14 14 8 5
Sample Output
78
Comments