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

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

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

  • 这个想是从“模糊效果:感知和估计与新的不
    The idea is from "The Blur Effect: Perception and Estimation with a New No-Reference Perceptual Blur Metric" Crété-Roffet F., Dolmiere T., Ladret P., Nicolas M. - GRENOBLE - 2007 In SPIE proceedings - SPIE Electronic Imaging Symposium Conf Human Vision and Electronic Imaging, É tats-Unis d Amérique (2007)-Measure the blur level of still image.
    2022-03-13 23:14:02下载
    积分:1
  • NSGAII Matlab实现源代码
    针对多目标遗传算法的Matlab代码,本代码是在原论文的基础上编写的关于此方法的,并尝试在编程中使用从简单记数法。
    2022-03-15 06:18:16下载
    积分:1
  • 二维有限微分导热模型
    二 维热传导模型的有限元分析。可以改变热导率的参数,仿真时间,平面,输出的数据包括时间为三维!——Dimensional finite element analysis of heat conduction model. Can change the parameters of the conductivity, the simulation time, flat, the output of three-dimensional data, including time!
    2022-03-03 04:42:35下载
    积分:1
  • 主旨表遗传
    主旨表遗传算法-keynote table GA
    2022-03-22 20:32:59下载
    积分:1
  • c language version of the CVM, mysvm
    cvm的c语言版,mysvm-manual工具箱介绍-c language version of the CVM, mysvm-manual introduction Toolbox
    2023-09-07 02:50:04下载
    积分:1
  • 排序的比较
    本代码以插入排序,冒泡排序,选择排序,快速排序,希尔排序等等进行比较,以替换的次数数值的来直观的比较
    2023-03-15 08:55:04下载
    积分:1
  • through algorithm PI values, the median Open
    通过算法计算PI值,不限位数-through algorithm PI values, the median Open-
    2022-01-25 18:23:28下载
    积分:1
  • A discrete cosine transform (DCT)
    离散余弦变换(DCT)用余弦和表示有限的数据点序列;
    2022-02-03 16:43:10下载
    积分:1
  • vtk 图像处理入门示例
    这是叶峰无偿提供的宝贵的学习财富,叶峰同志为中国的VTK研究事业和C3P论坛的发展作出巨大贡献,国内的VTK研究源头从C3P开始传播到各个学校、研究所、企业,同时也从C3P走出一大批VTK&C3P的优秀人才。非常感谢叶峰的努力和分享,希望大家向他学习
    2022-03-12 04:36:14下载
    积分:1
  • Vondrak:主要用于未知函数测量数据滤波
    Vondrak算法:主要用于未知函数测量数据滤波-Vondrak algorithm: being used in the filtering of measuring data whose function is unknown.
    2022-02-07 20:14:03下载
    积分:1
  • 696518资源总数
  • 106222会员总数
  • 14今日下载