-
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
-
C-xiangmu
男人下100层小游戏,学校C语言项目用C写的。但是用到了C++的图形库,所以是CPP文件。几乎都是C的语法。是男人下100层小游戏。(100 men under the layer of small game, the school C language program written in C. But the use of the C++ graphics library, so is the CPP file. Almost all of the C syntax. Is the man under 100 layers of small game.)
- 2013-10-08 09:58:33下载
- 积分:1
-
greedy-snake
vs用c#语言编写的贪吃蛇小程序,可以拿来学习c#(vs c# language with Snake small program that can be used to learn c#)
- 2013-07-17 17:48:41下载
- 积分:1
-
消灭星星
说明: 在Windows平台上用C++开发的一款游戏,源代码已经打包(A game application developed with C++ progamming language on Windows OS.The source code is be contained.)
- 2020-06-18 14:40:02下载
- 积分:1
-
PuzzzleGame
Game in Csharp to demonstrate students about game programming.
- 2012-07-30 03:33:32下载
- 积分:1
-
贪吃蛇
说明: 贪吃蛇游戏的Java文件,class文件和讲解,他能增长,吃食物,碰到石头会死亡。(The Code and Explanation of Snake Eating)
- 2020-06-21 11:20:02下载
- 积分:1
-
5673634656
VB简单弹球游戏源代码,有需要的就下载吧,很好的参考。(VB simple pinball game source code, there is need to download it, very good reference.)
- 2013-08-17 10:19:05下载
- 积分:1
-
Smallgame
j2mw小游戏,九宫格,只是个人爱好,编写简单,只供参考(Style Box)
- 2011-11-20 12:47:34下载
- 积分:1
-
第二题
星星版俄罗斯方块,通过改变传统俄罗斯方块形式从而为该款经典游戏注入新的活力(Star version of Tetris)
- 2018-05-13 11:26:33下载
- 积分:1
-
ddd
一款,非常好玩的小游戏,曹最简单,适合各个极端玩耍(A, very interesting little game, the most simple cao, suitable for various extreme play
)
- 2012-03-01 21:59:51下载
- 积分:1