{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003dpanel_content\u003eGiven two rectangles and the coordinates of two points on the diagonals of each rectangle,you have to calculate the area of the intersected part of two rectangles. its sides are parallel to OX and OY .\u003c/div\u003e\u003cdiv class\u003dpanel_bottom\u003e\u0026nbsp;\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003dpanel_content\u003eInput The first line of input is 8 positive numbers which indicate the coordinates of four points that must be on each diagonal.The 8 numbers are x1,y1,x2,y2,x3,y3,x4,y4.That means the two points on the first rectangle are(x1,y1),(x2,y2);the other two points on the second rectangle are (x3,y3),(x4,y4).\u003c/div\u003e\u003cdiv class\u003dpanel_bottom\u003e\u0026nbsp;\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003dpanel_content\u003eOutput For each case output the area of their intersected part in a single line.accurate up to 2 decimal places.\u003c/div\u003e\u003cdiv class\u003dpanel_bottom\u003e\u0026nbsp;\u003c/div\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cdiv class\u003dpanel_content\u003e\u003cpre\u003e\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e1.00 1.00 3.00 3.00 2.00 2.00 4.00 4.00\r\n5.00 5.00 13.00 13.00 4.00 4.00 12.50 12.50\u003c/div\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class\u003dpanel_bottom\u003e\u0026nbsp;\u003c/div\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cdiv class\u003dpanel_content\u003e\u003cpre\u003e\u003cdiv style\u003d\"font-family:Courier New,Courier,monospace;\"\u003e1.00\r\n56.25\u003c/div\u003e\u003c/pre\u003e\u003c/div\u003e\u003cdiv class\u003dpanel_bottom\u003e\u0026nbsp;\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e"}}]}