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

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

于 2022-02-06 发布 文件大小:1.31 kB
0 115
下载积分: 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 个回复

  • 相关性系数
    应用背景计算成年人年龄和身体脂肪相关性系数关键技术数据挖掘计算两组数据是正相关还是负相关
    2023-03-02 00:35:03下载
    积分:1
  • I have written eight issues of a variety of Queen' s random algorithm: includ...
    自己编写的八皇后问题的各种随机算法:包括了随机算法,回溯法,随机+回溯求解八皇后-I have written eight issues of a variety of Queen" s random algorithm: including a random algorithm, backtracking random+ back to solve the eight Queen" s
    2023-08-24 07:15:03下载
    积分:1
  • Acm University of title, 1118 title. Identify two
    北京大学acm的题,1118题。找出在二维地图中共线的最多有多少个点。-Acm University of title, 1118 title. Identify two-dimensional map of the Chinese Communist line has a maximum number of points.
    2023-05-01 03:45:02下载
    积分:1
  • 数据结构
    资源描述c语言实现的数据结构的源代码,很全很强大
    2022-05-26 03:32:50下载
    积分:1
  • 该程序为动态规划得图论求解程序 好不好用了就知道
    该程序为动态规划得图论求解程序 好不好用了就知道 -The procedure for the dynamic programming procedure for solving a graph theory better use of the know
    2022-01-24 09:39:00下载
    积分:1
  • 用于ofdm的盲信道估计,可以用于系统性能的提高和改进
    用于ofdm的盲信道估计算法,可以用于系统性能的提高和改进-OFDM for the blind channel estimation algorithm can be used to enhance system performance and improve the
    2022-01-29 04:32:04下载
    积分:1
  • 生成最小生成树
    最小生成树算法,将节点 构成的图转换为最小生成树。可用于计算某个节点到另外一些节点的最短距离 
    2022-02-06 01:48:41下载
    积分:1
  • PSO algorithm PSO
    粒子群优化算法PSO-PSO algorithm PSO
    2022-03-23 10:10:58下载
    积分:1
  • 在COMSOL Multiphysics模拟悬臂
    Cantilever simulations in COMSOL Multiphysics
    2022-04-30 08:46:35下载
    积分:1
  • matlab 平面拟合
    这个代码的功能是:给定一组3维数据点,计算出一个平面,所有点到平面的法线具体之和最小。拟合用到了计算给定数据点的特征值/特征向量。代码可以用到所有大于等于2D的空间。
    2022-01-25 16:41:34下载
    积分:1
  • 696518资源总数
  • 104537会员总数
  • 64今日下载