搜索资源列表
Tug og war.rar
- Tug of War A tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be on one team or the other; the number of people on the two teams must not differ by more than
accept
- 数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in
acjanchan
- 2^x mod n = 1 acm竞赛题 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^?
Sort_Demo
- *一个简单的能够形象演示各种排序算法的applet小程序 *类似于Sun公司的示例程序,但比它复杂 *因为这个程序支持简单选择排序,冒泡排序,双向冒泡, *快速排序,希尔排序,堆排序,归并排序共七种排序算法 *每次80个整数随机生成,七种算法同时运行,之间的对比非常明显-* a simple image can be demonstrated by various sort algorithm small applet procedures similar to the
1059
- Descr iption Calculate a+b Input Two integer a,b (0<=a,b<=101000) Output Output a + b Sample Input 5 7 Sample Output 12
Datastruct_C 实现顺序表的就地逆置
- Descr iption 试写一算法,实现顺序表的就地逆置,即利用原表的存储空间将线性表(a1,a2,…..an),逆置为( an,an-1, …….a2,a1)。 Input 输入长度n 接下来是n个数 Output 操作后的序列。 Sample Input 7 2 4 1 7 5 3 6 Sample Output 6 3 5 7 1 4
sharePfisher
- 确定投影方向使得降维以后,样本不但线性可分,而且可分性更好-Determine the projection direction makes dimensionality reduction, sample not only linearly separable, and a better separability
Apple_Set
- Problem A:放苹果 Time Limit:1000MS Memory Limit:65536K Total Submit:1094 Accepted:441 Language: not limited Descr iption 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t
shortest_path
- 分别用floyd 和dijkstra算法计算城市间最短路径的简单例子,地图由固定格式的文件输入,参考压缩包中的sample.txt,地图文件名要作为main参数-Floyd were Dijkstra algorithm and the shortest path between cities in the simple example, the map by a fixed format file input, reference compression package sample.txt,
three-sample-of-Data-Structure
- 数据结构,一共有三个文件,多项式相加,二叉树几种操作,数组正负排序-Data structure, a total of three documents, the sum of polynomials, binary tree several operations to sort the array of plus or minus
sample
- 数据结构考试的样题,对考试很有帮助。里面是BMP文件。-Data structure sample exam questions on the exam very helpful. Inside is a BMP file.
biaodashi
- 一个表达式求值样例程序,对于C++初学者很有帮助-a sample of expression evaluation,it will be helpful for C/C++ fresher
assign4
- 第1部分 该纳契系列:0,1 ,2,3,5,8,13,21,...。开始的条款0和1,并有 每一个成功的财产一词,是前两个条件的总和。编写一个非递归 功能纳契(n)到显示的前n个Fibonacci数。观看停止对样品标志 在最后显示的数字输出(它不是逗号)。编写一个简短的UNIX shell脚本来运行 您的斐波那契程序。 第2部分 编写一个C程序,使用UNIX进程管理工具。您将使用fork()函数 产卵的三子进程。每个子进程将使用execlp()函数来运行
DE
- 用数组模拟递归函数,实现递归函数的简化算法,具体要求看英文描述。-We all love recursion! Don t we? Consider a three-parameter recursive function w(a, b, c): if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns: 1 if a > 20 or b > 20 or c > 20
tree
- 设T是一棵具有n个结点的二叉树,若给定其先序和中序遍历序列,并假定其其先序和中序遍历序列分别存放于数组PreOder[n-1]和InOrder[n-1]中,试设计构造该二叉树链式存储结构的递归算法。-T is a set with n nodes of binary tree, if a given sequence and the sequence of its first traversal sequences, and assumed its first order and the ord
Dining_Philosophers_problem
- 是操作系统中的哲学家就餐问题的一个完整的示例源代码,可以在VC++6.0中完美编译运行。-The operating system in the Dining Philosophers problem of a complete sample source code in VC++6.0 can be compiled to run perfectly.
Dirtree
- 二叉树的示例程序,是学习二叉树的良好示例-Sample application binary tree is a good example of learning a binary tree
horse
- 问题描述与实验目的 给定8*8方格棋盘,求棋盘上一只马从一个位置到达另一位置的最短路径长。 注意马是走“日”形的。 输入 输入有若干测试数据。 每组测试数据仅1行,每行上有2个方格pos1、pos2,之间用一个空格隔开,每格方格表示棋盘上的一个位置,该位置由表示列的1个字母(a-h)及表示行的一个数字(1-8)构成,如“d7”表示第4列第7行。 输出 对输入中每行上的2个方格pos1、pos2,输出马从位置pos1跳到pos2所需的最短路径长。如“a1==>a2
bankbillClent
- 序列化和反序列化的示例 网络传输协议 将多种数据结构转换成二位数组-Serialization and deserialization sample a variety of network transport protocol data structures into two-digit group
Sample-Code
- AS devil is here get it and leave it. am a joking.