搜索资源列表
trangle
- 对于符号三角形问题,符号三角形的第一行有n个符号。符号可以为“+”或“-”,以下每一行的符号由上行得到,2个同号下面都是“+”,2个异号下面都是“-”。如下图所示(第一行有4个符号的符号三角中的其中的一个): 符号三角形问题要求对于给定的n,计算有多少个不同的符号三角形,使其所含的“+”和“-”的个数相同。 Input 输入包含若干个测试用例。 对于每个测试用例,输入的一行是一个整数n(2<=n<=20),表示符
三元组
- C语言数据结构作业三元组序列表,特点是非零元在表中按行序有序储存,因此便于进行依行顺序处理的矩阵运算,然而若需按行号存取某一行的非零元,则需从头开始进行查找-C language data structures operating sequence in Table 3, which is characterized by non-zero yuan in the table in an orderly sequence by storage firms, according to facili
F77TOF90_STEP1
- 本F77TO90.EXE for window 1) 列出原程序代码 行数 2) 用来将fortran 77 中的首栏”C” comment改成为"!“ 及将第六栏的连续号去除 并在程序前行加入 “&” 连续号 3) 列出所有function 及subroutine 名字 并在该段程序末 加入 end subroutine 名 4) 经执行后 原程序将更容易在 f90中编译执行 5) 提醒输入错误檔名 并请重新输入,或输入999停止 建议首用 scheme 1执行就可
Dijkstra
- 计算无向图中,从某一点出发到其余各点距离之和的最小值。应用Dijkstra算法完成。输入格式为,先输入两个数字N和M,N为顶点个数;之后输入M行数据,每行数据为两个顶点号以及顶点之间的距离。-Calculating an undirected graph, starting from a point to the rest of the points and the minimum distance. Application of Dijkstra' s algorithm is comp
3
- 有一个3乘4的矩阵,要求编程序求出其中值最大的那个元素的值,以及其所在的行号和列号。-There is a 3 by 4 matrix, programmed to calculate the value of the value of the maximum of the elements, and their row and column number.