-
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
-
singlephasehalfpwm
for single phase pwm inverter
- 2017-11-20 20:24:53下载
- 积分:1
-
滴水
这是去限制版的
配合渔夫主图使用
我见有人上传了限制版的额已经过期了 我这个没限制(ou should have contacted this hedge EA online, or is it famous in hedge ea? But there are many other EAS on the Internet in the name of dripping water. Here is the authentic dripping water. Only two currencies are traded. And many pirates are actually triangular hedging. Here is an unlimited edition for your study.)
- 2020-06-18 01:20:01下载
- 积分:1
-
Sugeno模糊逻辑法
fuzy logic sugeno method
- 2022-01-24 14:49:02下载
- 积分:1
-
calendar
说明: 这是一款汇编的日历,完全是由汇编写成的,主要有2个模块构成。(This is a compilation of the calendar is entirely written by the compilation, there are two modules.)
- 2008-11-17 14:22:09下载
- 积分:1
-
use PowerBuilder to achieve the inventory management procedures
用powerbuilder实现的库存管理程序-use PowerBuilder to achieve the inventory management procedures
- 2022-12-09 01:05:03下载
- 积分:1
-
AspNetCoreRateLimit-master
说明: AspNetCoreRateLimit-master 限制流量访问(AspNetCoreRateLimit-master is a full limit acl lib)
- 2020-08-18 09:59:01下载
- 积分:1
-
Digital-image-processing-matlab-E
数字图像处理入门及深入编程学习的核心教材,中英文版本均有,可对照学习,对有意向出国和继续深造的学生尤为适用,内容过大,需分别上传,此为英文版。(Introduction to digital image processing and in-depth study of the core materials, Chinese and English versions are, comparison study, to have intention to go abroad and continue their education students are most applicable, content is too big, need to upload respectively, this is the English version.)
- 2017-05-03 17:43:16下载
- 积分:1
-
chlib
在cadence virtuoso schematic 自动替换已有的cell到不同的lib(In the cadence virtuoso schematic automatically replace the existing cell to a different lib)
- 2009-12-22 10:17:31下载
- 积分:1
-
pca
MATLAB例程,基于数据驱动的一种方法,主元分析(pca),并采用方差贡献率对超限数据进行故障辨识(MATLAB routine, a data-driven method, principal component analysis (pca), and the use of variance contribution rate for fault identification of excess data)
- 2018-12-27 10:44:32下载
- 积分:1