-
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
-
Cube
java写的简单的魔方,可用鼠标拖动,代码简单易用(a java simple grogram )
- 2011-05-11 17:51:59下载
- 积分:1
-
WarCrafe
一个基于Wind32的游戏实例,对于学习和运用c++ 编写游戏是一个很好的参考(A game based Win32 and it is useful for you study the game programming)
- 2011-05-26 07:42:28下载
- 积分:1
-
贪吃蛇
贪吃蛇游戏,用C#编写的程序。我也是从csdn上面下载来的。(Snake game, written with C# program. I downloaded it from CSDN too.)
- 2017-11-08 11:06:24下载
- 积分:1
-
nine
说明: 一个九宫格小游戏的源代码,主要应该编辑框,实现输入,编辑和修改,检测(A Jiugongge game' s source code, should the main edit box, the input, editing and revising, testing)
- 2011-04-07 11:59:56下载
- 积分:1
-
sanlianqi-
用c++编写的可以进行人人交战和人机交战的三连棋简洁版游戏(Can be prepared using c++ all three warring warring and human concise version of the game with chess)
- 2013-07-15 18:47:34下载
- 积分:1
-
全民奇迹
全民奇迹手游源代码!很不错的,大家可以学习一下!比较稀有请珍藏!(National miracle hand travel source code!)
- 2018-08-24 10:24:28下载
- 积分:1
-
GameBall
弹球游戏,利用滑块移动碰撞弹球,使探球弹起碰撞商贩的滑块来赢得分数。(a game of ball ,ball and slider game,you can move the slider to collide the ball ,ball can move also to collide sliders where above the first slider.)
- 2012-03-19 16:32:26下载
- 积分:1
-
MGgame
迷宫游戏~~~算法!!!!!供新手参考!!参考!!!!!(~ ~ ~ Algorithm for maze game! ! ! ! ! Reference for the novice! ! Reference! ! ! ! !)
- 2011-04-19 17:07:09下载
- 积分:1
-
skyblue_BoxMan
推箱子 源代码 大家可以参考学习一下……我爱vc(Sokoban everyone can refer to the source code to learn about ... ... I love vc)
- 2009-02-07 21:53:45下载
- 积分:1