-
练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以...
练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以下内容:1.第一行输入第一个大整数M。M可能带有负号,后面是最长可达50位的数字序列。2.第二行只有一个字符,可以是“+”、“-”、“*”,分别代表加、减、乘三种运算符。3. 第三行输入大整数N,格式与M相同M、N均不带有前缀的多余的0【输出形式】在标准输出上打印运算结果,输出一行字符序列,是大整数M和N和运算结果。如果该运算结果是正数,则直接输出各位数字序列;如果是负数,则首先要输出负号。各位数字紧密输出,不带有前缀的多余的0。-practice procedures, as follows : high-precision integer for the addition, subtraction, multiplication. The importation of two decimal integer big M and N (M, N up to a maximum of 50), the calculated results of operations and output. Entry forms : standard input on the importation of branches were the following : 1. The first line inputs, a large integer M. M may have negative, is back up to 50 digital sequence. 2. Only a second line of characters could be "","-","*", respectively, plus or minus, by three operators. 3. The third line inputs large integer N, M and the same format M, N are not redundant with the prefix 0 output-- in the form of print on standard out
- 2022-02-06 02:31:19下载
- 积分:1
-
ID3决策树matlab源码
这个是使用Matlab实现ID3决策树的源代码,注释的非常清楚。选择了三组数据。非常容易懂。
- 2022-03-07 11:10:10下载
- 积分:1
-
一个简单的递归实现八皇后算法
一个简单的递归实现八皇后算法-a simple recursive algorithm to achieve eight Queen"s
- 2022-04-14 18:07:05下载
- 积分:1
-
一个求解Josephus问题的函数
#include
#include
#define NULL 0
#include
typedef struct Lnode
{
int data;
struct Lnode *next;
}Josephus;
void CreateList(Josephus*&L,int n)//建立循环链表
{
int i;
Josephus *p,*s;
s=(Josephus*)malloc(sizeof(Josephus));
s->data=1;
L=p=s;
for(i=2;idata=i;
p->next=s;
p=s;
}
p->next=L;
}
void DeleteList(Josephus*&L,Josephus*p,Josephus*q)
{
q->next=p->next;
free(p);
}
void Josephus1(Josephus*&L,int s,int m)
- 2022-01-27 23:12:59下载
- 积分:1
-
包括高斯正算公式,中央经线以及高斯反算公式
包括高斯正算公式,中央经线以及高斯反算公式-Including the Gaussian formula for positive operators, the central meridian, as well as anti-Gauss formula
- 2022-07-14 00:44:08下载
- 积分:1
-
vibe前景检测
vibe算法实现,对视频中图像帧二值化操作后,进行轮廓融合,能够提取较好的前景。vibe算法实现,对视频中图像帧二值化操作后,进行轮廓融合,能够提取较好的前景。vibe算法实现,对视频中图像帧二值化操作后,进行轮廓融合,能够提取较好的前景。vibe算法实现,对视频中图像帧二值化操作后,进行轮廓融合,能够提取较好的前景。
- 2022-08-06 17:18:26下载
- 积分:1
-
随机算法的c++源代码,程序结构清晰,便于理解
随机算法的c++源代码,程序结构清晰,便于理解-Stochastic Programming
- 2022-08-18 07:33:20下载
- 积分:1
-
一维时间序列分行维数,利用计盒法计算得到的分形维数,希望对大家有所帮助!...
一维时间序列分行维数,利用计盒法计算得到的分形维数,希望对大家有所帮助!-Branch of one-dimensional time series dimension, using box method calculated the fractal dimension, and they hope to be helpful to everyone!
- 2022-02-07 12:30:37下载
- 积分:1
-
运用粒子群计算函数的极值
应用背景
求最大值与求最小值两者转换时的修改处:
BaseStepPso:代码83行和91行
InitSwarm: 代码44行
PsoProcess: 代码
69行
关键技术
调用格式:
Scope=[ ];
[xm,on,off,fv]=PsoProcess(N,D,Scope,@InitSwarm,@BaseStepPso,@fitness,IsStep,0,M,IsPlot);
Xm:目标函数取最大值时的自变量
Fv:目标函数的最大值
on:在线性能的数据
off:离线性能的数据
N:粒子数目(一般取20-40。对于大部分的问题10个粒子已经足够可以取得好的结果,
不过对于比较难的问题或者特定类别的问
- 2022-12-27 12:25:05下载
- 积分:1
-
数据结构习题
数据结构非常经典的练习题,里面有1800道习题,其中有各种算法的习题、还有代码可以练习,可以供学习者学习参考,对于将来工作笔试都有一定的帮助作用。
- 2022-12-11 10:10:03下载
- 积分:1