-
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
-
三分之一倍频程处理
三分之一倍频程程序,信号处理必备,请自用下载(One-third octave program, self-download)
- 2019-01-14 16:10:42下载
- 积分:1
-
VC++写的关于键盘的程序
VC++写的关于键盘的程序-keyboard
- 2022-01-26 19:33:53下载
- 积分:1
-
隶属函数在MATLAB中应用
说明: 这是一篇关于使用matlab进行隶属度函数编辑计算的详尽讲解,高清(This is a detailed explanation of the use of matlab membership function editing calculation, hd)
- 2020-05-09 11:47:00下载
- 积分:1
-
块小游戏代码
说明: HTML俄罗斯方块小游戏代码,界面简洁,难度可选:简单、一般、困难,键盘操作,↑:变换、←:左移、→:右移、↓:加速。(HTML Tetris game code, simple interface, difficult to choose: simple, general, difficult, keyboard operation,: transformation,: left shift, right shift,: acceleration.)
- 2019-03-30 19:20:42下载
- 积分:1
-
电能质量复合扰动程序
说明: 产生电压暂降,暂升,波动,振荡,谐波等多种电能质量单一和复合扰动问题(Compound disturbance of power quality)
- 2021-05-13 03:30:03下载
- 积分:1
-
A11_碰撞检测老师
opengl基于碰撞检测的简单第一人称射击游戏(Opengl Simple First Person Shooting Game Based on Collision Detection)
- 2020-06-25 20:20:02下载
- 积分:1
-
java 课件介绍JAVA语言的入门知识
java 课件介绍JAVA语言的入门知识-java software JAVA language introduction introductory knowledge
- 2022-03-16 12:12:42下载
- 积分:1
-
aryc3
开发的指数平滑发用于短期负荷预测,已经用于实际工程(smooth development of the index for the short-term load forecasts, has been used for practical projects)
- 2006-12-08 12:03:14下载
- 积分:1
-
CWT
说明: 基线校正代码,包括小波基线校正及滤波器基线校正,可用于光谱数据的预处理。((Baseline correction codes, including wavelet baseline correction and filter baseline correction, can be used for preprocessing of spectral data.))
- 2019-06-19 17:13:53下载
- 积分:1