{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\n Bobo 有一个三角形和一个矩形,他想求他们交的面积。\n \u003c/div\u003e \n \u003cdiv\u003e\n 具体地,三角形和矩形由 8 个整数 x\n \u003csub\u003e1\u003c/sub\u003e,y\n \u003csub\u003e1\u003c/sub\u003e,x\n \u003csub\u003e2\u003c/sub\u003e,y\n \u003csub\u003e2\u003c/sub\u003e,x\n \u003csub\u003e3\u003c/sub\u003e,y\n \u003csub\u003e3\u003c/sub\u003e,x\n \u003csub\u003e4\u003c/sub\u003e,y\n \u003csub\u003e4\u003c/sub\u003e 描述。 表示三角形的顶点坐标是 (x\n \u003csub\u003e1\u003c/sub\u003e,y\n \u003csub\u003e1\u003c/sub\u003e),(x\n \u003csub\u003e1\u003c/sub\u003e,y\n \u003csub\u003e2\u003c/sub\u003e),(x\n \u003csub\u003e2\u003c/sub\u003e,y\n \u003csub\u003e1\u003c/sub\u003e), 矩形的顶点坐标是 (x\n \u003csub\u003e3\u003c/sub\u003e,y\n \u003csub\u003e3\u003c/sub\u003e),(x\n \u003csub\u003e3\u003c/sub\u003e,y\n \u003csub\u003e4\u003c/sub\u003e),(x\n \u003csub\u003e4\u003c/sub\u003e,y\n \u003csub\u003e4\u003c/sub\u003e),(x\n \u003csub\u003e4\u003c/sub\u003e,y\n \u003csub\u003e3\u003c/sub\u003e).\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\n 输入包含不超过 30000 组数据。\n \u003c/div\u003e \n \u003cdiv\u003e\n 每组数据的第一行包含 4 个整数 x\n \u003csub\u003e1\u003c/sub\u003e,y\n \u003csub\u003e1\u003c/sub\u003e,x\n \u003csub\u003e2\u003c/sub\u003e,y\n \u003csub\u003e2\u003c/sub\u003e (x\n \u003csub\u003e1\u003c/sub\u003e≠x\n \u003csub\u003e2\u003c/sub\u003e,y\n \u003csub\u003e1\u003c/sub\u003e≠y\n \u003csub\u003e2\u003c/sub\u003e).\n \u003c/div\u003e \n \u003cdiv\u003e\n 第二行包含 4 个整数 x\n \u003csub\u003e3\u003c/sub\u003e,y\n \u003csub\u003e3\u003c/sub\u003e,x\n \u003csub\u003e4\u003c/sub\u003e,y\n \u003csub\u003e4\u003c/sub\u003e (x\n \u003csub\u003e3\u003c/sub\u003e\u0026lt;x\n \u003csub\u003e4\u003c/sub\u003e,y\n \u003csub\u003e3\u003c/sub\u003e\u0026lt;y\n \u003csub\u003e4\u003c/sub\u003e).\n \u003c/div\u003e \n \u003cdiv\u003e\n (0≤x\n \u003csub\u003ei\u003c/sub\u003e,y\n \u003csub\u003ei\u003c/sub\u003e≤10\n \u003csup\u003e4\u003c/sup\u003e)\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\n 对于每组数据,输出一个实数表示交的面积。绝对误差或相对误差小于 10\n \u003csup\u003e-6\u003c/sup\u003e\u0026nbsp;即认为正确。\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1 1 3 3\r\n0 0 2 2\r\n0 3 3 1\r\n0 0 2 2\r\n4462 1420 2060 2969\r\n4159 257 8787 2970\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e1.00000000\r\n0.75000000\r\n439744.13967527\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\u003c/body\u003e\n\u003c/html\u003e"}}]}