大数据使用数组存储 摘要:解题思路: 注意进位即可 注意事项:无 参考代码: #include <stdio.h> #include <string.h> const int N= 10001; int C[10…… 题解列表 2023年04月14日 0 点赞 0 评论 652 浏览 评分:0.0
N进制的加,C语言 #include#include#defineN10//进制数#defineM'9'//进制数-1voidreverse(char*c,intl,intr){//逆序while(l 题解列表 2022年11月24日 0 点赞 0 评论 613 浏览 评分:9.9 字符串数组做法 摘要:#include<stdio.h>#include<string.h>int main(){ char a[1000]; char b[1000]; char c[1000]; …… 题解列表 2022年03月22日 0 点赞 0 评论 571 浏览 评分:0.0 编写题解 1513: 蓝桥杯算法提高VIP-大数加法(C语言--带注释) 摘要:解题思路:注意事项:参考代码:#include#include//比较大小函数 int max(int a,int b){ return a > b ? a : b;}int main()…… 题解列表 2021年12月01日 0 点赞 0 评论 816 浏览 评分:9.9 蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:#include <stdio.h> #include <string.h> char a[1005],b[1005]; int i,j,l1,l2,sum=0,cou=0,c[1005]; …… 题解列表 2020年08月21日 0 点赞 0 评论 1158 浏览 评分:9.9 蓝桥杯算法提高VIP-大数加法-题解(C++代码)string解答 摘要:此题严重卡 getchar()or gets()输入1.ch=getchar()输入记录字符参考代码:#include<bits/stdc++.h> using namespace std; in…… 题解列表 2020年08月19日 0 点赞 0 评论 604 浏览 评分:9.9 优质题解 蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 字符数组保存大数 ##核心思路:用数组保存大数创建两个字符数组用以保存大数,大数的每一位以字符的形式保存在对应下标的数组元素里。例如输入两个数据999和1,则arr1[1]=9,arr1[2]=9,arr1[3]=9;arr2[1]=1。(注意到这两个数组的第一个元素也就是下标为0的元素是空置的, 题解列表 2020年04月04日 0 点赞 1 评论 1326 浏览 评分:9.9 蓝桥杯算法提高VIP-大数加法-题解(C语言代码) ###思路:与高精度加法相同```#include#includechara[1005],b[1005];intc[1005],d[1005],e[1005];intmain(){scanf("%s%s",a,b);intla=strlen(a);intlb=strlen(b);for(inti=0; 题解列表 2020年02月27日 0 点赞 0 评论 1010 浏览 评分:0.0 蓝桥杯算法提高VIP-大数加法-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int…… 题解列表 2020年02月05日 0 点赞 0 评论 1233 浏览 评分:0.0 蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:解题思路: 一刷:[川哥的吩咐](https://blog.dotcpp.com/a/62422 "川哥的吩咐") 二刷碰到了这道题,重新整理了以下思路 本题就是高精度的加法,利用数组求和,进位…… 题解列表 2019年11月24日 0 点赞 0 评论 1497 浏览 评分:0.0 « 12 »
字符串数组做法 摘要:#include<stdio.h>#include<string.h>int main(){ char a[1000]; char b[1000]; char c[1000]; …… 题解列表 2022年03月22日 0 点赞 0 评论 571 浏览 评分:0.0
编写题解 1513: 蓝桥杯算法提高VIP-大数加法(C语言--带注释) 摘要:解题思路:注意事项:参考代码:#include#include//比较大小函数 int max(int a,int b){ return a > b ? a : b;}int main()…… 题解列表 2021年12月01日 0 点赞 0 评论 816 浏览 评分:9.9
蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:#include <stdio.h> #include <string.h> char a[1005],b[1005]; int i,j,l1,l2,sum=0,cou=0,c[1005]; …… 题解列表 2020年08月21日 0 点赞 0 评论 1158 浏览 评分:9.9
蓝桥杯算法提高VIP-大数加法-题解(C++代码)string解答 摘要:此题严重卡 getchar()or gets()输入1.ch=getchar()输入记录字符参考代码:#include<bits/stdc++.h> using namespace std; in…… 题解列表 2020年08月19日 0 点赞 0 评论 604 浏览 评分:9.9
优质题解 蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 字符数组保存大数 ##核心思路:用数组保存大数创建两个字符数组用以保存大数,大数的每一位以字符的形式保存在对应下标的数组元素里。例如输入两个数据999和1,则arr1[1]=9,arr1[2]=9,arr1[3]=9;arr2[1]=1。(注意到这两个数组的第一个元素也就是下标为0的元素是空置的, 题解列表 2020年04月04日 0 点赞 1 评论 1326 浏览 评分:9.9
蓝桥杯算法提高VIP-大数加法-题解(C语言代码) ###思路:与高精度加法相同```#include#includechara[1005],b[1005];intc[1005],d[1005],e[1005];intmain(){scanf("%s%s",a,b);intla=strlen(a);intlb=strlen(b);for(inti=0; 题解列表 2020年02月27日 0 点赞 0 评论 1010 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string s1,s2; cin>>s1>>s2; int…… 题解列表 2020年02月05日 0 点赞 0 评论 1233 浏览 评分:0.0
蓝桥杯算法提高VIP-大数加法-题解(C语言代码) 摘要:解题思路: 一刷:[川哥的吩咐](https://blog.dotcpp.com/a/62422 "川哥的吩咐") 二刷碰到了这道题,重新整理了以下思路 本题就是高精度的加法,利用数组求和,进位…… 题解列表 2019年11月24日 0 点赞 0 评论 1497 浏览 评分:0.0