搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
GM.rar
- GM Science GM模型 全称:灰色理论的微分方程型模型 灰色理论的微分方程型模型称为GM模型,G表示grey(灰),M表示Model(模型).GM(1,N)表示1阶的,N个变量的微分方程型模型.而GM(1,1)则是1阶的, 1个变量的微分方程型模型。,GM Science GM model name: the theory of differential equations gray gray theory-based model of the differential equation
vc8quween
- 1. 编写求n后问题的通用函数; 2. 取n=8计算出n后问题的所有可行解,并以8元组的形式输出(可以对可行解的结构进行分析,); 3. 随机输出2个可行解的图形。其中棋盘要有8×8的格子,Queen图象自选; -1. To prepare for issues common after n function 2. Take n = 8 calculated after n all feasible solution, and 8-byte form of output (can
2^N
- 计算2的N次方的最大整数(不是科学计数法表示).以及计算的时间.-Calculation of the N-th power of 2, the largest integer (not a scientific count that). As well as the calculation time.
josho(n)
- 约瑟夫环 o(n)解 //n,m input: n,m -- the number of persons, the inteval between persons-Joseph Ring o (n) solution// n, m input: n, m- the number of persons, the inteval between persons
n!
- 输入一个自然数n,求 ,同时统计结果中有多少个0。-Enter a natural number n, for, at the same time results in the number of 0.
queen
- N皇后问题,N皇后放置过程的现实。 由八皇后问题扩展开来,在N*N的棋盘上摆放N个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上。求可能的解决方案,并显示每一种解决方案的皇后放置过程。-N Queen' s problem, N Queen placed the reality of the process. Expansion by opening eight to question Queen' s, at the N* N chessboard
puzzle
- 有一个迷宫,用一个二维数组maze[1: m][1: n]表示,其元素值只有两个:0与1。其中以值0表示该位置可以走通,以值1表示该位置阻塞。在迷宫的左上方maze[1][1]处有一入口,右下方maze[m][n]处有一出口,如图1-1所示。现要求探寻从迷宫入口到出口有无通路;若有,则指出其中一条通路的路径:将迷宫数组中通路上的0替换成另一数字(例如8),输出找到通路的迷宫数组;同时按照走通的顺序输出路径上每一步的位置坐标及向下一步前进的方向;若没有,则给出相应的信息。-There is a m
N-saveCools
- N-SAV网盘系统服务端 配置要求 服务端要求 硬件要求: 独立服务器,VPS,虚拟主机 软件要求: asp.net2.0支持,sql2000支持 权限支持 网站fso权限,数据库帐号的数据库修改权限 客户端要求 最低:IE6或以上版本 推荐:IE7 有下载工具更佳 -N-SAV network server disk system configuration requirements service client requests hardwar
OilingCar
- acm算法设计 描述: 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。 对于给定的n和k个加油站位置,编程计算最少加油次数。 输入: 第一行有2 个正整数n和k,表示汽车加满油后可行驶n公里,且旅途中有k个加油站。接下来的1 行中,有k+1 个整数,表示第k个加油站与第 k-1 个加油站之间的距离。第0 个加油站表示出发地,汽车已加满油。第k+1 个加油站表示目的地。 输出: 的最少加油次
1
- N皇后问题的回溯算法 N皇后问题的回溯算法 -N Queen' s problem backward algorithm N Queen' s problem backward algorithm
N
- 利用labview里的FOR循环函数计算N次阶数的和。-Use labview inside the FOR loop function of the number of second-order calculation of N and.
KMO(n^3)(HDU2853)
- KM算法O(n^3)的代码实现。给出的是哈尔滨赛区C题(HDU 2853)的源码-the code of KM algorithm with the complexity O(n^3). It provides a solution to the problem 2853 in HDU online judge.
1
- 任务:参加运动会有n个学校,学校编号为1……n。比赛分成m个男子项目,和w个女子项目。项目编号为男子1……m,女子m+1……m+w。不同的项目取前五名或前三名积分;取前五名的积分分别为:7、5、3、2、1,前三名的积分分别为:5、3、2;哪些取前五名或前三名由学生自己设定。(m<=20,n<=20) 功能要求: 1)可以输入各个项目的前三名或前五名的成绩; 2)能统计各学校总分, 3)可以按学校编号或名称、学校总分、男女团体总分排序输出; 4)可以按学校编号查询学
qichejiayou
- 一辆汽车加满油后可行驶n公里。旅途中有若干个加油站。设计一个有效 // // 算法,指出应在哪些加油站停靠加油,使沿途加油次数最少。对于给定的 // // n和k个加油站位置,编程计算最少加油次数。 -Fill up the car after driving an n km. There are a number of gas stations journey. To design an effective//// algorithm, which should be
输出斐波那契数列前 n项
- 通过输入数值n,输出斐波那契数列前 n项(Through the numerical input n, output Fibonacci numbers before the n)
n皇后问题
- 递归回溯法求解并输出输出n皇后问题所有解法(n的取值不限)(Output all solutions to the N queens problem)
n-cube-a-star
- solving the n-cube search using iterating deepening search
n皇后
- 要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h(NODE; void multiplication( NODE *, NODE * , NODE * ); void input( NODE * ); void output( NODE * ); void input( NODE * head ) { int flag, sign, sum, x;
ARX教程N本
- ARX教程N本(ARX tutorial N Edition)
