蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:解题思路: 一刷:[川哥的吩咐](https://blog.dotcpp.com/a/62422 "川哥的吩咐") 二刷碰到了这道题,重新整理了以下思路 本题就是高精度的加法,利用数组求和,进位…… 题解列表 2019年11月24日 0 点赞 0 评论 527 浏览 评分:0.0
大数据使用数组存储 摘要:解题思路: 注意进位即可 注意事项:无 参考代码: #include <stdio.h> #include <string.h> const int N= 10001; int C[10…… 题解列表 2023年04月14日 0 点赞 0 评论 113 浏览 评分:0.0
字符串数组做法 摘要:#include<stdio.h>#include<string.h>int main(){ char a[1000]; char b[1000]; char c[1000]; …… 题解列表 2022年03月22日 0 点赞 0 评论 198 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:### 思路:与高精度加法相同 ``` #include #include char a[1005],b[1005]; int c[1005],d[1005],e[1005]; int m…… 题解列表 2020年02月27日 0 点赞 0 评论 335 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int…… 题解列表 2020年02月05日 0 点赞 0 评论 374 浏览 评分:0.0
花落的新手代码(C语言代码)~ 摘要:参考代码:#include<stdio.h> #include<string.h> #include<ctype.h> #include<stdlib.h> #include<math.h> …… 题解列表 2017年12月28日 0 点赞 0 评论 1042 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C++代码) 摘要:解题思路: 为了节省空间,全部都用字符串保存数据。 字符串a,b,c分别保存大整数a,b,c;先逆序a,b,然后从低位开始求和一直到最高位即可。 (1)输入a,b; (…… 题解列表 2019年02月20日 1 点赞 0 评论 569 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> // 个人认为最好理解的大数加法#include <string.h>int main(){ char a[1000], b[10…… 题解列表 2019年02月19日 0 点赞 0 评论 525 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (不一样的方法,很好理解的,打开有惊喜) 摘要:解题思路:依次从后往前提取每个数,字符型转成int型后,然后进行加法运算定义两个字符串,用于存储输入的两个注意事项:字符串中单个字符的提取a[0]可能是大于10的数,注意进位问题temp就是用来给a[…… 题解列表 2018年12月12日 1 点赞 2 评论 304 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"#define max 1000void reverse(int len, char a[]){ int i,t; …… 题解列表 2018年10月31日 0 点赞 0 评论 494 浏览 评分:0.0