-
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
-
Lianliankan
一个好玩的连连看游戏,用Visual Basic 语言开发,我只完成了基本代码,请多多指教。(Lianliankan a fun game, developed in Visual Basic language, I only completed the basic code, exhibitions.)
- 2011-08-05 20:44:07下载
- 积分:1
-
Electronic-clock-
纪念2013桌面小工具,具有整点报时,日期显示,星期显示,秒表功能,小巧玲珑,很好用!划时代的记录。(A Electronic Clock )
- 2013-10-18 08:16:14下载
- 积分:1
-
Test1
飞机大战游戏源代码,有部分注释,还有开始编写时的一些程序被注释掉了(It s a game of plane.)
- 2011-12-15 10:19:53下载
- 积分:1
-
Single-version-of-Tetris
俄罗斯方块单人版(使用简单的图形库实现了游戏的画面,图片可以自己在对应位置保存)(Single version of Tetris)
- 2015-04-18 18:30:35下载
- 积分:1
-
snake
很简单的贪吃蛇,用的都是WINDOWS的API,不过是早期写的,可能可读性上差点,新手可以看(Snake is very simple)
- 2011-07-09 18:38:28下载
- 积分:1
-
Test
MFC平台
打砖块游戏代码
面向对象程序设计思想编写
(MFC platform BrickBreaker design object-oriented programming code written)
- 2021-01-10 13:28:51下载
- 积分: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
-
贪吃蛇
贪吃蛇游戏的Java文件,class文件和讲解,他能增长,吃食物,碰到石头会死亡。(The Code and Explanation of Snake Eating)
- 2020-06-21 11:20:02下载
- 积分:1
-
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