
高精度
jia_zheng
这个作者很懒,什么都没留下…
展开
-
SDNU 1303 高精度(A+B)
Description求A+BInput 多组测试样例。两个正整数X,Y(0≤X,Y≤10^100)Output 输出结果 Sample Input1 1 12345 54321Sample Output2 66666思路: 先用字符数组存起来,在将其转化为整形数组,当两个数相加之和大于等于10时,向前进一位,然后再对自己取余,和加法的打草的计算方法一样。#include<iostream原创 2016-12-11 20:44:22 · 359 阅读 · 0 评论 -
SDNU 1126 Integer Inquiry
Description One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored taking various sums of those numbers. Thi原创 2016-12-11 20:49:16 · 295 阅读 · 0 评论