搜索资源列表
Josephus
- 约瑟夫环问题,用户输入M,N值,从1至N开始顺序循环数数,每数到M输出该数值,直至全部输出。-Josephus, the user input M, N values, each number to the start sequence and cycle count from 1 to N, M output the values, until all the output.
Seeking-an-orderly-array-element
- 求一有序数组的每一个元素用筛选法求m内的素数-Every element of seeking an orderly array screening method and primes within the m
函数发生器和基于单片机的伪随机序列
- 基于单片机的用C语言实现的函数发生器和基于单片机的伪随机发生器,产生m序列的,也是用C实现的。
shuzhizhuanhuan
- 程序的输入是两个数字 M 和 N( 其十进制的值不超过 1000000000) ,它们的进制在 2~36 之间。对于十以下的数字,用 0~9 表示,而十以上的数字,则使用大写的 A~Z 表示。 求出分别在 2~36 哪种进制下 M 和 N 相等。若相等则输出相应的进制,若不等则输出错误信息-The program input two numbers M and N (decimal value not exceeding 1000000000) and their hex between 2 t
cata
- ▲问题描述: (1) 设计一个表示高精度整数的模板类,它支持对任意大整数的输入、输出和四则运算(+、-、*、/),其中除法运算应输出所得的商和余数。 (2) 用上述高精度整数的模板类,计算大整数组合数和Catalan数的精确值。 组合数C(m,n)=m! / (n!*(m-n)!) Catalan数定义为:C(n)=C(2*n,n)/(n+1) ▲编程任务: 给定大整数m和n,计算C(m,n)和C(m)的精确值。 ▲数据输入: 由文件input.txt
ccc
- 这个代码包括求图的最大生成树和M着色问题,很好用-This code includes the figure, find the maximum spanning tree and M coloring problem, easy to use
getdisk
- 用C#获取到驱动器的容量,检查驱动器的容量,获取磁盘的总容量和剩余容量,以字节为为单位,有兴趣的初学者可转换为M或G为单位-With C# get to the capacity of the drive, check the drive' s capacity, access to the disk' s total capacity and remaining capacity in bytes as a unit, interested beginners can be con
yuesefu
- 约瑟夫问题是个有名的问题:N个人围成一圈,从第一个开始报数,第M个将被杀掉,最后剩下一个,其余人都将被杀掉。例如N=6,M=5,被杀掉的人的序号为5,4,6,2,3。最后剩下1号。 假定在圈子里前K个为好人,后K个为坏人,你的任务是确定这样的最少M,使得所有的坏人在第一个好人之前被杀掉-Josephus problem is a well-known problem: N personal circle, starting from the first report the num
music
- music算法的matlab实现 m usic算法的matlab实现 m usic算法的matlab实现-music matlab music matlab music matlab music matlab music matlab music matlab music matlab music matlab music matlab music matlab music matlab music matlab
Josephus
- 已知n个人(以编号1,2,3...n分别表示)围成一圈。从编号为1的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到一圈的人全部出列。-Known n individuals (with numbers 1,2,3 ... n, respectively) circle. From the number 1 people began to report the number, the number to m that person out
3242424243264
- 猴子选大王 猴子选大王问题:一堆猴子都有编号,编号是1、2、3……m,这群猴子(m个)按照1- m的顺序围坐一圈,从第1开始数,每数到第n个,该猴子就要离开此圈,这样依次下来,知道圈中只剩下最后一只猴子,则该猴子为大王。-Monkey king Monkey king election election issues: a bunch of monkeys are numbered, numbered 1,2,3 ...... m, these monkeys (m a) in accord
juzhen
- 矩阵的乘法.只有当矩阵A的列数与矩阵B的行数相等时A×B才有意义。一个m×n的矩阵a(m,n)左乘一个n×p的矩阵b(n,p),会得到一个m×p的矩阵c(m,p)-Matrix multiplication
TransfoSat3limb_BH2Sat
- TransfoSat3limb_BH2Sat.m ,功率电子领域matlab仿真文件,已经验证过,程序运行正常-TransfoSat3limb_BH2Sat.m, power electronics matlab simulation files have been verified, the program runs correctly
Application
- 设计和开发一个网站,使用ASP.NET MVC 4,EF,Knockoutjs 在文章的第一部分中,我已经讨论关注在任何架构中使用分离的利益,并创建了一个用户界面,应用程序使用ASP.NET MVC 4,淘汰赛和引导,不知道数据如何流动。 第一部分描述的任何内容应被视为任何人都很难。如果是的话,请发邮件/我的个人意见,确保吞下少许盐,在你做。 在这篇文章的第二部分中,我将采取一切我们所学到的第一部分,并把它应用到需要写入的文章。我也将覆盖这个应用的数据库设计和实施使用结构
m-custom-scrollbar-plugin
- 这是一个以javascr ipt 开发的滚动条插件,很美丽.喜欢就-This is a scroll bar plugin javascr ipt development, is very beautiful. Likes to try
BCSbacktest
- 这个程序可以用来做组合投资策略,并且可以进行回测,看自己的策略和现阶段的市场是否吻合-he following MATLAB .mat and .m files can be used to generate 3D efficient frontiers and do backtests. They are the materials used in the MathWorks Webinar "Using MATLAB to Develop Portfolio Optimization Mo
123456
- a) 设有n个人围坐在一个圆桌周围,现从第s个人开始报数,数到第m的人出列,然后从出列的下一个人重新开始报数,数到第m的人又出列,如此反复直到所有的人全部出列为止。Josephus问题是:对于任意给定的 n、s、m,求出按出列次序得到的n个人员的序列。试在计算机上模拟Josephus问题的求解过程。 b) 利用线性表实现一元多项式的相加、相减操作。 -very very easy
Vault
- 跳马问题 有一m*n的棋盘(即棋盘由m行和n列),一马放在棋盘中任意位置,马按中国象棋跳法,从初始位置起跳,跳至边界后返回,求所有能返回初始位置的周游路线。-Vault with an m* n chessboard (ie board consisting of m rows and n columns), a horse anywhere on the board, according to Chinese chess horse jump method, from the initia
1
- 编一判断m是否为素数的函数,并在主函数中利用它输出十对最小的孪生素数。所谓孪生素数是指两个相差为2的素数-Compile a judge m is a prime function of the number and use it in the main function output ten pairs of the smallest twin primes. The so-called twin primes refers to two differ by two primes
2
- m个人的成绩存放在score数组中,请编写函数fun,它的功能是:将低于平均分的人数作为函数值行会,将低于平均分的分数放在below所指的数组中-m individual performance score stored in the array, write the function fun, its functions are: to be lower than average values as a function of the number of guild