C语言:三个数组+两个函数 解决问题【豆包改过的代码】 摘要:解题思路:【原代码是我写的,现在这个代码是豆包改的,和我原本想法细节上有出入,我就不解释了,直接分享代码吧】注意事项:参考代码:#include <stdio.h>#include <…… 题解列表 2025年03月01日 0 点赞 0 评论 759 浏览 评分:0.0
编写题解 2841: 大整数加法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int maxmine = 210; int a[maxmine…… 题解列表 2023年02月02日 0 点赞 0 评论 409 浏览 评分:0.0
2841: 大整数加法 忽略前导0 摘要:## 大整数加法 ```c++ #include #include using namespace std; vector add(vectora,vectorb){ if(a.s…… 题解列表 2023年07月22日 0 点赞 0 评论 376 浏览 评分:0.0
详细解释我的代码这么写的原因 摘要:解题思路: 定义两个字符串数组a1\a2 和两个整数数组b1\b2 还有存放他们的和的整数数组sum , 并且将他们全部初始化为0, 将a1\a2里面的每一个数字 按照分位从大到小 分开存…… 题解列表 2024年11月23日 1 点赞 0 评论 698 浏览 评分:0.0
编写题解 2841: 大整数加法 摘要:解题思路:求出最长字符串的长度,相加时只需让相加之后的答案位数多一位因为相同长度的数字相加最大只会向前进一位,如9+9=18,99+99=198.最后只需判断第一位是否为,零为0不打印,反之,打印。注…… 题解列表 2024年04月19日 0 点赞 0 评论 511 浏览 评分:0.0
大整数加法(C++) 摘要://大整数加法#include <bits/stdc++.h>using namespace std;int na[1005], nb[1005];string add(string a, strin…… 题解列表 2024年02月04日 0 点赞 0 评论 366 浏览 评分:0.0
大整数加法的双向链表写法 摘要:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> struct lennum{ int num; struct l…… 题解列表 2023年11月22日 0 点赞 0 评论 259 浏览 评分:6.0
大整数加法 摘要:解题思路:说白了,就是进位与ASCII码值的转换注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[10000]={&…… 题解列表 2022年11月19日 0 点赞 6 评论 862 浏览 评分:9.9
2841: 大整数加法(超详细解答) 摘要:解题思路:写了很久,要注意前导0和十进制的运算注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[201]={&#…… 题解列表 2024年10月31日 0 点赞 0 评论 796 浏览 评分:9.9
写题解 2841: 大整数加法,字符串与整型数组之间的转化 摘要:解题思路:由于本题的输入为两个不超过200位的整数,int类型、long int类型以及long long int类型所支持的最大输入数并不能满足这类大整数之间的加法计算,基于以上背景,只能将输入整数…… 题解列表 2024年09月12日 0 点赞 0 评论 627 浏览 评分:9.9