搜索资源列表
程序员考试
- 没有界面,用C写的小程序 问题如下:一家软件公司招聘了数十位程序员,分成若干部门。 进行一次考试,对各个部门的所有程序员进行考核。考试结束后评出了每个人的分数。现在需要知道,在每个部门内,成绩最好的程序员和成绩最差的程序员分别是谁。输入有N+1行,每一个有若干正整数。第一行只有一个正整数,代表公司的部门数目。剩余的N行,每一行代表了该部门所有程序员的得分。其中每行第一个数字k代表了该部门的程序员个数,该行剩下的有k对数据,每对数据包括一个程序员的姓名(一个字符串)和其得分(一个正整数)。【输出形
cmcm98b
- 98年全国大学生数学建模竞赛B题“水灾巡视问题”,是一个推销员问题,本题有53个点,所有可能性大约为exp(53),目前没有好方法求出精确解,既然求不出精确解,我们使用模拟退火法求出一个较优解,将所有结点编号为1到53,1到53的排列就是系统的结构,结构的变化规则是:从1到53的排列中随机选取一个子排列,将其反转或将其移至另一处,能量E自然是路径总长度。具体算法描述如下:步1: 设定初始温度T,给定一个初始的巡视路线。步2 :步3 --8循环K次步3:步 4--7循环M次步4:随机选择路线的一段
zuixiaoerchengfa
- 最小二乘法是修正误差曲线的算法,本例程实现算法并显示k线修正值只用于后来来者学习使用-Least square method is to amend the error curve algorithm, the routine algorithm and display the correct value of k line only to learn for later use
HanoiTowerSequence
- 题目大意: 经典的汉诺塔 n个盘编号,从小到大 1..n 问:移动的序列中第k步移的是哪个盘 -Input The first line of the input file is T, the number of test cases. Each test case contains one integer p (1<=p<10^100). Output Output the pth e
lzxjd
- 用VB 编的计算两条直线交点坐标的程序,只要输入两直线的斜率(k)和截距(b),就能打印出两条直线,并计算出交点的坐标。-VB calculations made by the two straight-line intersection coordinates procedures, as long as the two enter the slope of a straight line (k) and intercept (b), will be able to print out two
NormalDistribution
- Intention based scoring (IBS) is a scoring system, its goal is to provide a score that more accurately assesses a student’s ability to solve a composition problem, and therefore assess direct effects of the student s programming ability. This process
rnd
- 以随机函数生成K线.验证投机品种的随机性原理-Random function to generate the K line. To verify the randomness principle of the speculative variety
lab1
- 输入: 每组输入是两个整数n和k。(1 <= n <= 50, 1 <= k <= n) 输出: 对于每组输入,请输出六行。 第一行: 将n划分成若干正整数之和的划分数。 第二行: 将n划分成k个正整数之和的划分数。 第三行: 将n划分成最大数不超过k的划分数。 第四行: 将n划分成若干奇正整数之和的划分数。 第五行: 将n划分成若干不同整数之和的划分数。 第六行: 打印一个空行。 Sample Input 5
sgu261
- sgu261:Discrete Roots(原根+离散对数+扩展欧几里得) 题目大意: 给你两个质数p,k,和整数a(0≤a<p),求解所有满足x^k≡a(mod p)的x。-261. Discrete Roots time limit per test: 1 sec. memory limit per test: 65536 KB input: standard output: standard There are a lot of
sgu262
- sgu262:Symbol Recognition(状压DP) 题目大意: 给出k个n∗ m的01矩阵Si,求出一个1尽量少的n∗ m的01矩阵P,满足k个矩阵与该矩阵的交互不相同,也就是说通过该矩阵能表示出给出的k个矩阵。-262. Symbol Recognition time limit per test: 0.25 sec. memory limit per test: 65536 KB input: standard output:
2011
- 已知长度最大为200位的正整数n,请求出2011^n的后四位。输入第一行为一个正整数k,代表有k组数据,k<=200接下来的k行, 每行都有一个正整数n,n的位数<=200输出每一个n的结果为一个整数占一行,若不足4位,去除高位多余的0-The known maximum length of 200 positive integer n, requesting the four 2011 ^ n after the. Enter the first acts of a po
LZXJD
- 参数: p1~p4:直线上不相同的两点 *p:通过指针返回结果 返回值:1:两直线相交;2:两直线平行 如需要判断两线段交点,检验k 和对应k 1(注释中)的值是否在0~1 之间,用在0~1 之间的那个求交点 -Parameters: p1~p4:直线上不相同的两点 P1 ~ P4: two points in a straight line. *p:通过指针返回结果 *p: the result is returned by th
gunyan_v11
- 基于kaiser窗的双谱线插值FFT谐波分析,基于K均值的PSO聚类算法,对于初学matlab的同学会有帮助。- Dual-line interpolation FFT harmonic analysis kaiser windows, K-means clustering algorithm based on the PSO, Matlab for beginner students will help.