-
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
-
skyblue_BoxMan
推箱子 源代码 大家可以参考学习一下……我爱vc(Sokoban everyone can refer to the source code to learn about ... ... I love vc)
- 2009-02-07 21:53:45下载
- 积分:1
-
qinwajiaohuan
青蛙交换游戏,用c语言编写的,亲测可行!亲们,可以下载学习下~!!!(Frog exchange game, with the c language, pro-test possible! Pro, you can download to learn the next ~!!!)
- 2011-11-28 23:20:28下载
- 积分:1
-
BrickOut
这是用C#语言,.net平台所做的一个弹球的小游戏,是一个不错的了解windows编程的东西。(This is the C# language. Net platform doing a little game of pinball, is a good understanding of windows programming things.)
- 2005-08-22 17:24:01下载
- 积分:1
-
Five_Points_version2.2
用Matlab做的五子棋游戏,包括源代码,可以实现人人对战(We can realize the fight for everyone)
- 2018-05-14 21:13:02下载
- 积分:1
-
坦克
很老的TC编写的坦克游戏 ,上传过来的是网页格式 ,带有详细说明,在TC下可运行(very old tanks prepared by the TC game and upload over the web format, with a detailed explanation, under the TC running)
- 2005-03-17 22:12:56下载
- 积分:1
-
wuziqiyouxi
五子棋游戏,实现人工智能。单机游戏和多机游戏实现过程。(Backgammon games, achieve artificial intelligence. Single and multi-game machine game implementation process.)
- 2013-12-09 19:04:44下载
- 积分:1
-
lianliankan
一款简单的连连看源码,有暂停 有限时,选中方块颜色会有变化(code of
an easy game)
- 2014-07-14 17:08:02下载
- 积分:1
-
wuziqi
中科院大学的C++高级编程作业,可人机对战的五子棋程序。(C++ advanced programming job at the University of Chinese Academy of Sciences, the man-machine war of 331 procedures.)
- 2020-12-05 10:19:27下载
- 积分:1
-
扑克源码
一个扑克源码一个扑克源码一个扑克源码一个扑克源码一个扑克源码一个扑克源码一个扑克源码一个扑克源码一个扑克源码
- 2022-06-03 03:27:27下载
- 积分:1