标签:public rectangle color int style rect col turn top
class Solution { public: int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) { int left = max(A,E), right = max(min(C,G), left); int bottom = max(B,F), top = max(min(D,H), bottom); return (C - A) * (D - B) - (right - left) * (top - bottom) + (G - E) * (H - F); } };
标签:public rectangle color int style rect col turn top
原文地址:https://www.cnblogs.com/ymjyqsx/p/11324698.html