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

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

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

  • Conti. 通过优化GA(遗传)写的JC层裂,1999年8月
    随机搜索和优化的介绍写在支持文本,2003运行此程序的GA。亲自选择的轮盘的方法是用在这里。包括。家长选择从人口包括精英染色体。这里使用的是标准的位形。像往常一样,代码中的适应度值的作品(更高更好);结果,然而,报告的实际利益的损失值。此代码不在θ值以外的thetamax和thetamin直接相关约束的工作。J. C.剥落,八月1999 G
    2023-04-25 15:00:04下载
    积分:1
  • 伪谱模拟二维弹性波
    这是使用傅立叶伪谱法在二维弹性波模拟一个非常
    2022-06-18 10:59:18下载
    积分:1
  • 使用C++和wxWidgets绘声能量
    应用背景该程序能够播放或停止一个WAV文件。此外,你可以输出在txt格式的WAV文件的能量。你可以画出能量输出。这个程序是一个声音分析。关键技术我们可以上传wav文件,选择文件,所以,我们可以先,得到的WAV文件的能量并能记录txt文件所以我们可以看到能量值。此外,在视觉部分,利用直流电能值。
    2022-02-01 04:14:31下载
    积分:1
  • 两个 3 X 3 矩阵相乘的 c 语言程序
    这是两个3 * 3 矩阵相乘的 C源代码。欢迎下载、试用。谢谢大家的支持。
    2023-04-11 16:20:04下载
    积分:1
  • 清华大学2002年出版的《科学与工程数值计VB》配套源码,包括复数计、矩阵运、插值计、线性非线性方程组求解、数值积分、数值拟和与逼近等和类,对于...
    清华大学2002年出版的《科学与工程数值计算算法VB》配套源码,包括复数计算、矩阵运算、插值计算、线性非线性方程组求解、数值积分、数值拟和与逼近等算法和类,对于科学和工程数值计算很有参考价值!-Qinghua University, in 2002 published "Science and engineering numerical algorithm VB" complementary source, includes the plural, matrix computation, interpolation, linear solve nonlinear equations, numerical integration, and the proposed numerical approximation algorithms and other categories, science and engineering numerical computation of great reference value!
    2022-01-28 07:36:57下载
    积分:1
  • Two strings to find the longest common sub
    找出两个字符串的最长公共子串。 给出一个字符串,请删除该字符串的前导空格和尾随空格,中间的空格若多余1个删减到1个。 我是个菜鸟,但软件会是我终生的事业~我有信心学好它,希望站长通融-Two strings to find the longest common sub-string. Given a string, remove the string leading spaces and trailing spaces, if the extra spaces in the middle of a cut to one. I was a rookie, but the software will be my lifelong career ~ and I am confident to learn it, and hope that owners accommodation
    2023-05-01 09:20:03下载
    积分:1
  • KNN分类器
    开发了一个简单的投票K-NN与欧氏距离分类器,输入包括训练数据,测试数据和K值,输出是测试数据的分类结果。
    2022-04-21 02:47:33下载
    积分:1
  • Segmentations procedures very well. Absolutely concise
    分段算法的程序,很好的。绝对简练-Segmentations procedures very well. Absolutely concise
    2022-04-08 10:31:27下载
    积分:1
  • 钢筋工程量计程序
    钢筋工程量计算程序-reinforced engineering calculation program
    2023-07-22 11:05:08下载
    积分:1
  • ACO 蚁蚁群优化求解 tsp 问题
    TspACO 蚁蚁群优化求解 tsp 问题 tspACO 蚁蚁群优化 tspACO 蚂蚁殖民地优化 tspACO 蚂蚁蚁群优化蚁群算法蚂蚁群体优化
    2022-03-26 08:05:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载