-
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
-
MineSweep
高仿win7的扫雷游戏,很适合初学者学习(High imitation win7 minesweeper game, it is suitable for beginners to learn)
- 2013-09-07 13:03:59下载
- 积分:1
-
saolei
vb写的扫雷外挂源码,学习内存操作的朋友不妨可以看看呵呵(vb wrote mine external source, a friend may wish to study memory operations can see Oh)
- 2012-01-17 15:43:26下载
- 积分:1
-
24Points
24点游戏,找出所有解。给任意4个数,该程序能找出所有通过加,减,乘,除,括号算出24结果的算式。(24-point game, find all solutions. To any four numbers, the program can identify all through add, subtract, multiply, divide, calculate 24 results parentheses formula.)
- 2013-08-19 12:02:21下载
- 积分:1
-
snake2
这是三维贪吃蛇小游戏,在一个空间曲面上爬行,比较难操作(This is a 3D Snake game that crawls on a spatial surface and it is difficult to control.)
- 2020-06-21 10:20:02下载
- 积分:1
-
shuziyouxi
在数独高手的规则是要将9个数字填入一个9个小九宫格组成的9×9格子里。使得每一行,每一列和每个小九宫格里都有1-9的数字,并且每个数字在它所在的行、列以及每个小九宫格里面都只出现唯一一次。(Sudoku expert in the rules is to fill a 9 digit composed of nine small squares 9 × 9 grid yard. So that each row, each column and each have 1-9 small squares in the figures, and each figure in its row, column, and each small squares appear only inside the only time.)
- 2013-11-13 13:54:04下载
- 积分:1
-
C程序搬运工
搬运工,大家都玩过吧.这个是用c语言实现的.基本上实现游戏的大部分功能.(porters, we all tried it. C is the language used to achieve. Basically most of the game to achieve functional.)
- 2005-06-24 00:25:11下载
- 积分:1
-
Android_主角移动与地图平滑滚动
主角移动与地图平滑滚动,觉得不错,推荐给大家(Android_ movement and smooth rolling of the map)
- 2018-06-02 22:37:03下载
- 积分:1
-
demining
使用QT实现扫雷,包括中键等功能。界面风格与windows扫雷类似(To use QT achieve demining, including the key functions)
- 2013-01-24 13:45:13下载
- 积分:1
-
YOUXI
vc++写的另一类型的小游戏俄罗斯方块,希望大家喜欢,请跟我联系(vc++ written by another type of game the Russian box, hope everyone likes, please contact with me)
- 2008-05-10 13:30:35下载
- 积分:1