搜索资源列表
wanquan
- 用户输入一个范围 程序会将此范围内的完全数全部打印出来 (完全数即此整数的各个因子值的和等于该整数)-The user to enter a range of procedures would be fully within the scope of the number of all the print out (full number that is the integer value of each factor and equal to the integer)
2_2
- 将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5-A quality factor decomposition of positive integer. For example: enter 90, print out the 90 = 2* 3* 3* 5
1
- 本程序由三部分组成:输入员工的信息(年工作时间和工种系数);计算员工年工作量;输出员工年工作量。 在输入员工的信息年工作时间部分,将十进制数ASCII码转换成二进制数。同时由于可能存在小数和,而小数的位数一般为1位,为了便于计算,将每个数都乘10,对于工种系数则由于它要保留到小数点后两位,所以将它们都乘以100,从而去掉小数和,做整数计算。-This procedure consists of three parts: input employee information (annual w
Apositiveintegerprimefactordecomposition
- 将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5。-A positive integer prime factor decomposition
half_divide
- 提供一种分频系数为整数加0.5的分频方法,并在Q2中验证-Provide a frequency division factor of the sub-integer frequency increase of 0.5 methods, and verify in Q2
Demo
- 用netbeans写的swing程序,写了非递归求两整数最大公因子、分治法求大整数乘法、动态规划求最长公共子串,集合划分问题。 -Netbeans swing with written procedures, write a non recursive find the greatest common factor of two integers, divide and conquer seek large integer multiplication, dynamic programming
height
- 要求用户使用一个整数指出自己的身高(单位为英寸),然后将身高转换为英尺和英寸。程序使用下划线字符来指示输入位置,使用const符号常量来表示转换因子。-Requires the user to use an integer that their height (in inches), then the height converted to feet and inches. The program uses the underscore character to indicate the inp
duoxiangshi
- 题目说明: 要求采用链表形式,求两个一元多项式的乘积:h3 = h1*h2。函数原型为:void multiplication( NODE * h1, NODE * h2, NODE * h3 )。 输入: 输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。 例如:1+2x+x2表示为:<1,0>,<2,1>,<1,2>, 输出: 以指数递
pinghengerchashu
- 随机生成用户要求个数的整数,生成二叉树(无重复), 可以进行生成、遍历、查找二叉树,而且进行动态的查找, 如果没有找到节点就把这个值接到树上 能够显示节点的产生顺序、平衡因子(失败),节点值-Randomly generated integer number of user requirements, generate a binary tree (no duplicates), can be generated, traverse Find a binary tree, a
sf
- 包含了一些《算法竞赛与入门经典》和《算法设计与实验》中的一些算法代码及做题感想,有的用了多种方法,不同于书上的 因子和阶乘 小球下落 因子和阶乘 枚举排列(多种方法) 求下一个排列 求子集(不同方法) 困难的串 埃及分数 编码与解码 输入管道 整数分解 最长公共子序列 标准二维表,还有一些其他的以及我的做题感想 - "The algorithm contest with entry-classic" and "algorithm des
D
- 定义f(x)为整数x的质因数的个数(重复的也计数),求1<=x<=N中f(x)的最大值。-Definition of f (x) x is an integer of the number of quality factor (also repeat count), to demand 1 < = x < = N in the maximum value of f (x).
oo
- C语言 因子分解,找出输入整数的所有因子(包括重复因子),并按从小到大的顺序依次输出。-C language factorization to identify all the factors of an integer input (including the repetition factor), and press the order from small to large output.
square-free
- sicily1776.给一个正整数,给出此正整数中是否包含n平方作为因子,结果输出为n。 -A non-negative integer is called a Square Number, if it could be written as n^2, where n is an integer. A non-negative integer is called a Square Free Number, if it has no factor, except 1, which i
factor
- N的阶乘 【问题描述】 精确计算N的阶乘。其中,N可能是小于200的任意正整数。 【输入形式】 输入文件为当前目录下的factor.in。 该文件只包含一个正整数,表示需要求该正整数的阶乘。 【输出形式】 输入文件为当前目录下的factor.out。 该文件只包含一个正整数,表示该正整数的阶乘。50个数字为一行 【输入样例】 57 【输出样例】 40526919504877216755680601
fjzys
- 自己写的一个分解质因数的小程序,输入一个大于3的整数,然后输出分解的结果。使用了long long型变量,19位10进制的数字基本够用了。此外,根据输出结果很容易能判断是不是质数。-To write a prime factor decomposition of a small program, enter an integer greater than 3, and then outputs the results of the decomposition. Use a long long v
Integer-factor-decomposition
- 算法: 对于给定正整数n,计算n共有多少种不同的分解式。-Algorithm: For a given positive integer n, n calculate how many different factorization total.
polynomials
- Descr iption 给定两个多项式P(x)与Q(x),通过链表实现它们的加法。 Input 有若干组,每组有2个多项式。每组输入时先输入第1个多项式,再输入第2个多项式。每组用若干对整数表示,依序每两个相邻的整数表示多项式的一项,分别是它的系数和幂。当输入的幂为负数时,表示一个多项式的结束。一个多项式中各项的次序是随机的。 Output 对每组中两个多项式,先输出“Case #:”,其中“#”是测试数据序号。接着在下面三行上分别输出这两多项式,以及这两多项式的和。要求按