登录
首页 » Pascal » 2

2

于 2013-11-15 发布 文件大小:1KB
0 309
下载积分: 1 下载次数: 0

代码说明:

说明:  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

文件列表:

2.txt,443,2013-11-15
2_rectangle.txt,902,2013-11-15

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • caishuzi
    delphi 猜数字游戏,有兴趣的可以参考学习(delphi game code)
    2011-06-17 15:49:44下载
    积分:1
  • llk
    实现连连看游戏的算法。采用递归的算法找实现,很参考价值。(Achieve Lianliankan game algorithms. Find a recursive algorithm implementation, it is reference value.)
    2013-08-06 12:40:25下载
    积分:1
  • JoyKeys.Voluntary
    windows平台的游戏手柄编程源码,有很强的实用性。(Gamepad programming source code, has a strong practical.)
    2013-06-17 16:35:05下载
    积分:1
  • tanchishe
    一个简单的贪吃蛇,希望多初学者有点帮助,就用了for循环写的(A simple snake, hope to beginners a little help, the program only used for the cycle to write)
    2017-04-19 18:58:22下载
    积分:1
  • demining
    使用QT实现扫雷,包括中键等功能。界面风格与windows扫雷类似(To use QT achieve demining, including the key functions)
    2013-01-24 13:45:13下载
    积分:1
  • Hangman
    非图形版的小巧玲珑的Hangman! 不一样的感觉!(non-graphic version of the small size of Hangman! Not the same feeling!)
    2006-07-29 04:57:12下载
    积分:1
  • game
    用matlab实现的一个打地鼠的游戏,建议大家下载后学习一下,可以学到关于图像移动,鼠标捕捉,figure等方面的实际操作(Using matlab to achieve a fight to control the game, we recommend that you download to learn about, you can learn about the image moves, mouse capture, figure and other aspects of the actual operation)
    2013-05-22 19:52:12下载
    积分: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
  • 1000y的相关内容
    1000y的相关内容 1000y related content
    2019-03-06 04:44:59下载
    积分:1
  • 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
  • 696516资源总数
  • 106914会员总数
  • 0今日下载