rectangles = for _ in range(3):x, y, w, h = map(int, input.split)rectangles.append((x, y, w, h))x_left = max(rectangles[0][0], rectangles[1][0], rectangles[2][0])x_right = min(rectangles[0][0] + rectangles[0][2], rectangles[1][0] + rectangles[1][2], rectangles[2][0] + rectangles[2][2])y_bottom = max(rectangles[0][1] - rectangles[0][3], rectangles[1][1] - rectangles[1][3], rectangles[2][1] - rectangles[2][3])y_top = min(rectangles[0][1], rectangles[1][1], rectangles[2][1])width = x_right - x_leftheight = y_top - y_bottomif width > 0 and height > 0:print(width * height)else:print(0)摘要:rectangles = for _ in range(3):x, y, w, h = map(int, input.split)rectangles.append((x, y, w, h))x_left = max(rectangles[0][0], rec
来源:真心教育