-
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
-
用Visual Basic编写收发电子邮件的程序
用Visual Basic编写收发电子邮件的程序-Prepared by using Visual Basic procedures for sending and receiving e-mail
- 2022-03-15 08:34:14下载
- 积分:1
-
武林GM管理工具双库菜鸟版(带源)
诛仙、完美世界、物品外传等双数据库操作易语言源码,从其他地方收集(Zhu Xian, perfect world, goods outside the double database operations easy language source code, collected from other places)
- 2020-11-06 02:49:49下载
- 积分:1
-
电力系统暂态故障模拟再现系统
说明: 提出并研制了一种新型电力系统暂态故障模拟再现系统。该系统通过将系统发生故障时故障录波器录下的数据转换为符合IEEE的COMTRADE格式文件,经数据处理软件进行分析后由电脑并口送入多功能继电保护测试仪,最终由测试仪还原成故障时的PT、CT二次侧电压、电流信号。该系统对继电保护装置参数整定、事故原因查找及分析等有辅助作用。(proposed and developed a new type of power system transient fault simulation and reconstruction system.IEEECOMTRADE. The system of relay device parameter setting, the cause of the accident investigation and analysis of a supporting role.)
- 2005-11-01 14:36:33下载
- 积分:1
-
MPGA
模拟计算多因素影响的遗传算法优化问题,本人为初学者请您多多指教(Optimization problem of genetic algorithm based on Simulation and calculation of multiple factors)
- 2017-12-27 17:27:19下载
- 积分:1
-
BELLHOP水声工具箱AcTUP v2.2L1
说明: BELLHOP水声工具箱,非常好用,附说明书,推荐下载(Bellhop underwater acoustic toolbox)
- 2020-07-19 18:08:53下载
- 积分:1
-
Window_Licance_Number
windows licence number see.
- 2019-02-20 21:13:31下载
- 积分:1
-
Bayesian-Computation
专门介绍Bayesian的书籍,可以进行mcmc编程等(Special introduction Bayesian books, can MCMC programming etc.)
- 2014-11-13 00:04:45下载
- 积分:1
-
linux下的俄罗斯方块,程序短小精悍,代码仅有不到100k,适合于初学C++语言想看看大程序结构的同行们。...
linux下的俄罗斯方块,程序短小精悍,代码仅有不到100k,适合于初学C++语言想看看大程序结构的同行们。-Russia under linux box, procedures small and code with less than 100k, suitable for a novice C language to look at the program structure counterparts.
- 2022-12-28 22:30:04下载
- 积分:1
-
SoundCheck Run Seq
soundcheck调用,可以直接调用测试,自己研究(Soundcheck code open sources,everyone can learn.
easy to use.)
- 2017-12-04 08:22:48下载
- 积分:1