-
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
-
final
用TC写的撞球游戏,有保存功能,排行榜功能和单双人模式,dos下运行(TC wrote billiard games, save function, ranking function and single and double player mode, dos run)
- 2013-10-27 19:19:15下载
- 积分:1
-
dhxy
大话西游战斗模拟代码大话西游战斗模拟代码(Westward Journey combat simulation code)
- 2012-05-30 12:29:52下载
- 积分:1
-
Game2048
在AndroidStudio上开发的2048小游戏。(In the development of AndroidStudio 2048 games.)
- 2020-06-30 15:20:01下载
- 积分:1
-
snake
利用控制台操作实现界面贪吃蛇,功能具有代表性(use the perform of controlling to realise snake)
- 2012-11-09 00:16:58下载
- 积分:1
-
Electronic-clock-
纪念2013桌面小工具,具有整点报时,日期显示,星期显示,秒表功能,小巧玲珑,很好用!划时代的记录。(A Electronic Clock )
- 2013-10-18 08:16:14下载
- 积分:1
-
eluosi
用c++编写的俄罗斯方块小游戏,有兴趣的可以学习下(With c++ Tetris game, interested can learn under)
- 2013-10-15 22:11:42下载
- 积分:1
-
XIAOQIUf
在使用TURBO C学习时编写的贪球游戏
功能十分简单
但是确是劳动的成果
希望大家支持(TURBO C in the use of study prepared by greedy ball game features a very simple but it is the outcome of the labor I hope you will support)
- 2009-01-09 20:57:12下载
- 积分:1
-
ray
随机设置了雷的位置,当用户输入的位置与雷的位置相同,则游戏结束。否则该位置处打印出笑脸。(Ray random set position when the user enters the same position and the position of mine, the game is over. Otherwise, the position of print faces.)
- 2013-11-01 10:33:06下载
- 积分:1
-
KHarryPottero
韩国人手机上的J2ME手机游戏哈里波特源代码,运行于LG手机,因些声音方面需要LG特有的API,如果你没有LG的SDDK的话,可以建立一个空接口,游戏目前在SJBOY下可以正常运行,但是没有声音。图片资源请在jar包里提取
(Korean phone J2ME mobile game Harry Potter source code, running on the LG mobile phone, LG-specific API, if you do not have the LG SDDK, you can create an empty interface because the sound aspect, game in SJBOY, normal running, but no sound. Image resources are extracted in the jar bag)
- 2012-08-26 09:54:13下载
- 积分:1