高精度加法,vector 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;const int n = 1e6 + 10;vector<i…… 题解列表 2023年09月20日 0 点赞 0 评论 124 浏览 评分:0.0
高精度加法 摘要:解题思路:将输入的两个字符串通过split("")转化为String数组,通过for循环逆序存入int类型数组中,然后遍历将二者相加组成c数组注意事项:确保数组长度一致,否则遍历的时候可能会数组越界异…… 题解列表 2024年03月14日 0 点赞 0 评论 179 浏览 评分:0.0
1475: 蓝桥杯基础练习VIP-高精度加法 摘要:解题思路:注意事项:参考代码:a = int(input()) b = int(input()) print(a + b)…… 题解列表 2024年04月10日 0 点赞 0 评论 289 浏览 评分:0.0
编写题解 1475: 蓝桥杯基础练习VIP-高精度加法 摘要:#include<stdio.h> #include<string.h> int main(){ char a[1001]={0},b[1001]={0},a1[1001]={0},b1[10…… 题解列表 2024年11月08日 0 点赞 0 评论 151 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:解题思路:背模板,真开心注意事项:参考代码:#include <iostream> #include <algorithm> #include <string> #include <stdio.…… 题解列表 2018年12月02日 1 点赞 0 评论 509 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:解题思路: 个人笔记:a、b 两个字符串数组保存整数,c、e 两个整型数组保存每一位数字,d 数组用来交换, y数组用来计算。。。注意事项:参考代码:#include<iostream> …… 题解列表 2018年09月28日 0 点赞 0 评论 768 浏览 评分:0.0
junmu1475:蓝桥杯基础练习VIP-高精度加法 (C语言描述:直接在字符串上计算,不转整形) 摘要:解题思路:先将短的数组与长数组相加,当短数组结束时退出;再将长数组余下的高位投入要输出的数组中。注意事项:因为是在字符串中进行所以一定注意转数字时+或者-48; 还要考虑进位问题,特别是最后一次…… 题解列表 2018年12月21日 3 点赞 0 评论 759 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:解题思路: 逆序字符串转换 → 相加 → 进位 → 反向输出数组。#include "stdio.h" #include "string.h" const int …… 题解列表 2018年08月02日 1 点赞 0 评论 559 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C++代码) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; typedef long long LL; const LL BASE = 100000000…… 题解列表 2018年08月02日 0 点赞 0 评论 648 浏览 评分:0.0
蓝桥杯基础练习VIP-高精度加法 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(void){ char a[103], b[103]; int lengtha…… 题解列表 2018年03月28日 0 点赞 0 评论 989 浏览 评分:0.0