川哥的吩咐 (C语言代码) 摘要:#include<stdio.h>#include<string.h>int main(){ char a[1001],b[1001],c[1000]; int la,lb,i,j; …… 题解列表 2017年12月06日 0 点赞 0 评论 711 浏览 评分:0.0
我美吗! 摘要:解题思路: 详见代码,不懂可以留言偶注意事项:每次循环完成后都要清空数组。参考代码://大数求和,所以必须用字符串解决计算 #include <stdio.h> #include <string…… 题解列表 2017年12月18日 3 点赞 1 评论 557 浏览 评分:0.0
WU-川哥的吩咐 (C++代码) 摘要:这题要用字符串来写了额 但是处理起来比较麻烦 要处理好进位的问题 我的思路是先把进位算出来 再加到字符里面 为了防止数据溢出原有的位数 我还在两个加数的末尾加了个‘0’ 注意事项: …… 题解列表 2017年12月19日 6 点赞 0 评论 1453 浏览 评分:2.0
川哥的吩咐 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#define N 1000int main(){ char a[N],b[N]; …… 题解列表 2017年08月19日 2 点赞 0 评论 1156 浏览 评分:2.0
可 AC 摘要:解题思路:用字符数组储存两个加数,从个位开始,进行相加,结果存放另一个数组里,(顺便考虑是否进位) 注意事项: 在下的方法 要注意 每次输入数据时,要进行清空数组和进…… 题解列表 2018年07月29日 1 点赞 1 评论 293 浏览 评分:6.0
川哥的吩咐-题解(C语言代码) 摘要:```c #include #include #include #define max(a,b) a>b? a:b /* reverse:将字符串进行倒置的操作 @s:要倒置字符串的…… 题解列表 2020年07月25日 0 点赞 0 评论 504 浏览 评分:6.0
川哥的吩咐 (C++代码) 摘要:解题思路:大数加法,常规题,用java肯定最方便(毕竟现成的库在那里),在这里还是用C++写吧。字符串输入并且字符串输出,用字符串模拟加法运算的过程,从最后一位加起,用flag表示进位,每一次对应位数…… 题解列表 2018年01月05日 2 点赞 0 评论 771 浏览 评分:6.0
川哥的吩咐-题解(C++代码) 摘要:```cpp #include #include using namespace std; void bigAddAndPrint(string a,string b) { i…… 题解列表 2019年12月05日 0 点赞 1 评论 767 浏览 评分:7.0
全在代码中了 摘要:#include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> int main() { …… 题解列表 2021年03月05日 0 点赞 0 评论 410 浏览 评分:8.0
川哥的吩咐 (C++代码) 摘要:解题思路: 正整数大数加法,思路是输入两个string对象a和b 把a字符串中的每一个数字都逆序存储在int数 题解列表 2018年08月12日 14 点赞 0 评论 1221 浏览 评分:8.4