-
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
-
tanchi
这是一个贪吃蛇游戏的源程序,可通过控制蛇身的上下左右移动吃到食物后,蛇身增加,最后可输出成绩(This is a Snake game source code can be up and down by controlling the snake to eat the food and move around, the snake increases, the final output results)
- 2010-11-29 13:32:23下载
- 积分:1
-
Migong
迷宫小游戏,尽可能的模仿现实中的迷宫游戏(Maze small game, as far as possible the imitation of the real maze game
)
- 2012-02-27 16:19:45下载
- 积分:1
-
game
这是一个用C++ Builder写的七巧板小游戏,有兴趣的可以下下来看看(This is a work written in C++ Builder jigsaw puzzle game, are interested can look down under)
- 2010-12-14 09:41:31下载
- 积分: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
-
trade
俄罗斯方块,对c++ builder 初学者有一定好处。(Tetris, the c++ builder for beginners there are certain advantages.)
- 2012-01-01 20:08:34下载
- 积分:1
-
C-Programming-Language-Snake-
C语言程序设计:贪吃蛇程序源代码用TC2.0编译(C Programming Language: Snake program source code, compiled with TC2.0)
- 2011-04-22 16:44:10下载
- 积分:1
-
KeyDrum-(3)
Subject : KeyDrum
Development Suft : VC 2008
Language : MFC(GDI++), C/C++
- 2012-08-05 13:57:43下载
- 积分:1
-
1
说明: 输入1-13中的四个数,输入要计算的值(24点游戏就输入24),计算机穷举法给出计算公式(Enter the four numbers 1-13, enter the values to be calculated (24-point game on the importation of 24), the computer gives exhaustive formula)
- 2013-06-27 13:20:15下载
- 积分:1
-
JYNet
俄罗斯方块 联网版 不错很好,功能齐全。(Networked version of Tetris)
- 2011-10-01 09:48:17下载
- 积分:1