-
2
Background
Given a set of rectangles {R1, R2, …, Rn}, compute the area of their common intersection. i.e.,
Area(R1∩R2∩…∩Rn)
The edges of the rectangles R1, R2, …, Rn, are either vertical or horizontal lines.
For example, the intersection of 4 rectangles, R1, R2, R3, and R4, in the following figure is the shaded rectangle.
Input
The input contains (N + 1) lines. The first line specifies the number of rectangles N, where 1 < N < 1000. Since the sides of the rectangles are parallel to the x-axis and y-axis, each rectangle is bounded by the lines x = x1, x = x2, y = y1 and y = y2 and each subsequent line of the input file thus specifies one rectangle in the following format:
x1 x2 y1 y2
such that 0 <= x1 < x2 <= 10000 and 0 <= y1 < y2 <= 10000, and x1, x2, y1 and y2 are integers.
Output
The output file contains the area of the intersection of all the rectangles.
- 2013-11-15 02:58:38下载
- 积分:1
-
helq-file-help
本文件是poly16相位调制方式的仿真实现方案,希望能对大家有所帮助(This file is poly16 simulation implementation scheme of phase modulation mode can hope to be of help)
- 2017-08-13 14:13:34下载
- 积分:1
-
NETCFv35.Messages.zh-CHS.cab
NETCFv35.Messages.zh-CHS.cab
- 2020-06-20 12:20:02下载
- 积分:1
-
forward-backard sweep
说明: 基于前推回代法的配电网潮流计算程序 IEEE33节点算例(An example of IEEE33 node power flow calculation program for distribution network based on forward and backward substitution method)
- 2020-06-22 13:20:02下载
- 积分:1
-
仿真电路
实现双向DC/DC充放电,包括主电路拓扑以及控制器(Implementation of bidirectional DC/DC charging and discharging)
- 2021-04-17 16:58:52下载
- 积分:1
-
VB制作带ICO图标的菜单实例
VB制作带ICO图标的菜单实例,使软件窗口上的菜单更专业、更美观。实现思路:隐藏各Picture Box控件,使各Picture Box控件能够根据图片自动改变大小,得到窗口中菜单的句柄,得到第一个子菜单File的句柄,得到File菜单中的第一个菜单项的ID,然后为其添加图标,也可以添加两个图片,一个表示菜单项被选中状态,另一个表示菜单项没有被选中,得到File菜单中各个菜单项的ID并为其添加图标,
- 2022-07-27 10:19:31下载
- 积分:1
-
推箱子来源于日本游戏,最初是DOS下的,现在由作者升级成WINDOWS版本。希望大家喜欢。...
推箱子来源于日本游戏,最初是DOS下的,现在由作者升级成WINDOWS版本。希望大家喜欢。-game magazines from Japan, initially under the DOS, and now from the author escalated into Windows version. Hope you like them.
- 2022-10-18 01:20:03下载
- 积分:1
-
php实现飞信功能,转载自http://www.zendstudio.net/archives/php
php实现飞信功能,转载自http://www.zendstudio.net/archives/php-fetion-class-source-download/-php function to achieve Fetion, reproduced from http://www.zendstudio.net/archives/php-fetion-class-source-download/
- 2022-04-21 11:50:18下载
- 积分:1
-
青岛山东json
echarts山东和青岛地图json格式文件(Echarts Shandong and Qingdao map JSON format file)
- 2020-12-22 12:09:07下载
- 积分:1
-
bispectrum
双谱分析,可以实现双谱计算、绘图。希望对大家有所帮助。(bispectrum analysis)
- 2009-07-20 10:40:49下载
- 积分:1