资源列表
[其它] 阿姆斯特朗数
说明:如果一个正整数等于其各个数字的立方和,则称该数为阿姆斯特朗数(亦称为自恋性数)。 如 407=43+03+73就是一个阿姆斯特朗数。试编程求1000以内的所有阿姆斯特朗数-if one is integral to its various figures and Cubic, says the number of Armstrong (also known as narcissistic sexual numbers). If 407 = 43 03 73 Armstrong is a fe<姚紫欣> 在 2008-10-13 上传 | 大小:1kb | 下载:0
[其它] 求具有abcd=(ab+cd)2性质的四位数
说明:3025这个数具有一种独特的性质:将它平分为二段,即30和25,使之相加后求平方,即(30+25)2,恰好等于3025本身。请求出具有这样性质的全部四位数。 *题目分析与算法设计 具有这种性质的四位数没有分布规律,可以采用穷举法,对所有四位数进行判断,从而筛选出符合这种性质的四位数。具体算法实现,可任取一个四位数,将其截为两部分,前两位为a,后两位为b,然后套用公式计算并判断。 -3025, the figure has a unique character : it divide<姚紫欣> 在 2008-10-13 上传 | 大小:1.04kb | 下载:0
[其它] 素数幻方
说明:求四阶的素数幻方。即在一个4X4 的矩阵中,每一个格填 入一个数字,使每一行、每一列和两条对角线上的4 个数字所组成的四位数,均为可逆素数。 -for four bands in several magic squares. In a 4x4 matrix, each one filled a digital grid so that each line, each diagonal out and two on the four figures of the four-digit, are<姚紫欣> 在 2008-10-13 上传 | 大小:3.54kb | 下载:0
[其它] 北京交通大学校园旅游导航系统
说明:北京交通大学校园旅游导航系统,利用Dijkstra算法在任意两点之间找到最短路径。-Beijing Jiaotong University Campus Tourism navigation systems, the use of arbitrary Dijkstra algorithm to find the shortest between the two paths.<陈勋> 在 2008-10-13 上传 | 大小:307.93kb | 下载:0
[编译器/词法分析] 词法语法分析器——c
说明:一个C语言实现的词法分析器和语法分析器。仅供大家参考。-a C language of the lexical analyzer and parser. Only your reference.<陈为> 在 2008-10-13 上传 | 大小:35.87kb | 下载:1
[编译器/词法分析] Lexical_analysis
说明:词法分析的又一个例子 这个将词法分析做成了一个子程序便于后来与语法分析及语法制导连起来-lexical analysis of this yet another example of lexical analysis resulted in a subroutine and then to facilitate analysis of syntax and grammar guide link<李立纯> 在 2008-10-13 上传 | 大小:2.14kb | 下载:0