登录
首页 » Pascal » 2

2

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

代码说明:

  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 个回复

  • poly
    标题: 多边形游戏 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ms 描述: 多边形游戏是一个单人玩的游戏,开始时有一个由n个顶点构成的多边形。每个顶点被赋予一个整数值,每条边被赋予一个运算符“+”或“*”。所有边依次用整数从1到n编号。 游戏第1步,将一条边删除。 随后n-1步按以下方式操作: (1)选择一条边E以及由E连接着的2个顶点V1和V2; (2)用一个新的顶点取代边E以及由E连接着的2个顶点V1和V2。将由顶点V1和V2的整数值通过边E上的运算得到的结果赋予新顶点。 最后,所有边都被删除,游戏结束。游戏的得分就是所剩顶点上的整数值。 输入: 输入共两行,第一行一个整数n表示顶点个数,第二行共2*n个数,分别为数字和字符。 例如:对于上图中的问题,我们可以这样按输入样例中的例子输入,数学中的“+”号代表加法,小写字母“x”代表乘法。 输出: 一个整数,计算最高得分。 输入样例: 5 10 + -1 x -2 x 3 + -8 x 输出样例: 486 (标题: 多边形游戏 时 限: 1000 ms 内存限制: 10000 K 总时限: 3000 ms 描述: 多边形游戏是一个单人玩的游戏,开始时有一个由n个顶点构成的多边形。每个顶点被赋予一个整数值,每条边被赋予一个运算符“+”或“*”。所有边依次用整数从1到n编号。 游戏第1步,将一条边删除。 随后n-1步按以下方式操作: (1)选择一条边E以及由E连接着的2个顶点V1和V2; (2)用一个新的顶点取代边E以及由E连接着的2个顶点V1和V2。将由顶点V1和V2的整数值通过边E上的运算得到的结果赋予新顶点。 最后,所有边都被删除,游戏结束。游戏的得分就是所剩顶点上的整数值。 输入: 输入共两行,第一行一个整数n表示顶点个数,第二行共2*n个数,分别为数字和字符。 例如:对于上图中的问题,我们可以这样按输入样例中的例子输入,数学中的“+”号代表加法,小写字母“x”代表乘法。 输出: 一个整数,计算最高得分。 输入样例: 5 10+-1 x-2 x 3+-8 x 输出样例: 486 )
    2012-12-17 10:35:16下载
    积分:1
  • 2
    说明:  一个简单的俄罗斯方块,具有一般的功能,大家试着玩(A simple Tetris, with general features, we try to play)
    2010-01-04 15:52:15下载
    积分:1
  • xiangqi
    纯java编写的象棋,里面可能需要自己设置一下图片的大小位置(Pure java chess, which may need to set the picture size and position)
    2013-03-04 13:49:28下载
    积分:1
  • Test
    MFC平台 打砖块游戏代码 面向对象程序设计思想编写 (MFC platform BrickBreaker design object-oriented programming code written)
    2021-01-10 13:28:51下载
    积分:1
  • zhongguoxiangqiCPP
    c语言版本中国象棋,完美实现经典象棋的c语言程序源代码。(c language version of Chinese chess, the perfect realization of the classic chess c language program source code.)
    2013-09-29 16:14:03下载
    积分:1
  • Game
    Here is more than 10 games . written long back. share it now..njoy
    2012-11-12 19:56:14下载
    积分:1
  • Microsoft-CSharp-Game-Programming-For-The-Absolut
    Micorsoft C# Programing Game
    2011-11-15 14:26:27下载
    积分:1
  • tg
    说明:  一个练习打字的游戏,字母下落,恩与字母相同的键就可以大落字母。(a practice typing games, in alphabetical whereabouts TU with the same letters on the keys can drop large letters.)
    2005-07-23 11:17:47下载
    积分: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
  • Hanoi-Tower
    在linux下用C语言实现了一个简单的4层汉诺塔游戏,很有借鉴意义(In linux using C language to implement a simple 4-layer Tower of Hanoi game, great reference)
    2012-01-29 17:54:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载