题解 2841: 大整数加法 摘要:解题思路:跟小学计算列竖式一样,搞清楚进位情况就行。注意事项:和列竖式一样,从每个数组的最后一位数字开始往前计算,再判断进位。参考代码:#include<stdio.h>#in…… 题解列表 2025年12月12日 1 点赞 0 评论 41 浏览 评分:10.0
参考一位前辈的 摘要:参考代码:#include<stdio.h> #include<string.h> char s1[201], s2[201]; int a[201], b[201], c[201]; i…… 题解列表 2024年01月16日 0 点赞 0 评论 341 浏览 评分:9.9
2841: 大整数加法(超详细解答) 摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[201]={&#…… 题解列表 2024年10月31日 0 点赞 0 评论 692 浏览 评分:9.9
写题解 2841: 大整数加法,字符串与整型数组之间的转化 摘要:解题思路:由于本题的输入为两个不超过200位的整数,int类型、long int类型以及long long int类型所支持的最大输入数并不能满足这类大整数之间的加法计算,基于以上背景,只能将输入整数…… 题解列表 2024年09月12日 0 点赞 0 评论 541 浏览 评分:9.9
大整数加法 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年08月15日 0 点赞 0 评论 362 浏览 评分:9.9
2841: 大整数加法 摘要:```cpp #include using namespace std; struct hp { int len; int s[1000]; }; void init(string…… 题解列表 2024年08月05日 0 点赞 0 评论 497 浏览 评分:9.9
2841: 大整数加法python解法 摘要:解题思路:py可以直接处理大数注意事项:参考代码:a=int(input())b=int(input())print(a+b)…… 题解列表 2024年02月24日 0 点赞 0 评论 779 浏览 评分:9.9
2841: 大整数加法 摘要:解题思路:模拟手算,将两数末尾对齐,自末端逐个相加,如有进位向高位进位注意事项:不要将前导0(即数字前有0)输出参考代码: #include <stdio.h>#include <stdlib.h>#…… 题解列表 2022年11月15日 0 点赞 0 评论 813 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.math.BigInteger; import java.util.Scanner; public class Main { public static…… 题解列表 2024年01月16日 0 点赞 0 评论 468 浏览 评分:9.9
大整数加法(C语言) 摘要:解题思路:定义两个字符串 s1 和 s2,用于存储输入的两个大整数。通过 scanf 从标准输入中读取两个字符串。计算两个字符串的长度 la 和 lb,以确定大整数的位数。初始化数组 a 和 b,用于…… 题解列表 2023年11月26日 1 点赞 0 评论 800 浏览 评分:9.9