登录
首页 » 算法 » 练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以...

练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数M和N(M、N最长可达50位),计算运算结果并输出。【输入形式】标准输入上依次分行输入以...

于 2022-02-06 发布 文件大小:1.31 kB
0 387
下载积分: 2 下载次数: 1

代码说明:

练习程序,问题如下:进行高精度整数的加、减、乘运算。输入两个十进制大整数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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C algorithms, including most of the matrix operation, simple and effective
    C++常用算法,包含了大部分矩阵运算,简单有效-C algorithms, including most of the matrix operation, simple and effective
    2022-03-11 15:22:20下载
    积分:1
  • C语言282例代码集
    所有程序都可以在VS 2015上运行; 该程序尤其适合初学者,算法初学者; 部分程序来自282例,其他是原创程序。
    2022-03-22 05:05:15下载
    积分:1
  • gene recombination value calculation
    基因重组值的计算-gene recombination value calculation
    2022-07-02 08:09:54下载
    积分:1
  • MFC的图片浏览器的设计与实现
    MFC的图片浏览器的设计与实现 基于 VC++ 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-01-25 14:04:27下载
    积分:1
  • 遗传求解函数最大值
    这是一个由MATLAB实现的运用遗传算法求解任意函数最大值的方法。
    2022-02-12 13:36:42下载
    积分:1
  • Matlab的地理数据分析
    %Markov链%第一种方法A=[0 1243.37 171.92 29.79 0 0 00 0 6983.97 957.97 0 0 00 0 203845.5 9812.96 0 0 034 0 77259.28 11323.64 3851.17 0 4.89128.47 11580.83 917.15 0 5761.7 2397.61 02293.52 79225.61 9979.07 3647.11 0 91339.8 24.360 141.18 964.94 2.2 0 0 28.67];             %原始数据矩阵[m,n]=size(A);                              %计算矩阵的行数和列数Rsum=sum(A");                               %计算矩阵各行数值之和S=Rsum(ones(n,1),:);                        %将各行数值之和平移为矩阵M=(A"./S)";                                 %计算转移概率矩阵%第二种方法A=[0
    2022-01-22 01:04:19下载
    积分:1
  • silconlab 的c语言sample
    这个是基于8051单片机的silconlab对Xbee通信的源代码,里面详细的介绍了算法的基本用法。
    2022-01-25 21:45:05下载
    积分:1
  • 傅里叶变换是信号处理中最常用的,实现…
    傅立叶变换是信号处理时最常用的算法之一,实现时域与频域之间的转换,对人们研究各种信号非常有用,本程序利用VC实现快速傅立叶变换算法-Fourier transform signal processing is the most commonly used algorithm, achieving time-domain and frequency domain between the conversion of the people look very useful signal, the procedure used VC Fast Fourier Transform algorithm
    2023-07-10 08:25:03下载
    积分:1
  • C commonly used numerical algorithm
    C常用数值算法--特征函数-C commonly used numerical algorithm-- eigenfunction
    2022-07-18 03:53:25下载
    积分:1
  • DFS非
    dfs的非递归算法-dfs non- recursive algorithm
    2023-01-24 05:20:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载