蓝桥基础练习-字符串对比,初学者暴力解法! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2 …… 题解列表 2024年11月06日 0 点赞 0 评论 218 浏览 评分:6.0
高精度乘法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string s1,s2; int a1[100000],a2…… 题解列表 2024年11月05日 0 点赞 0 评论 130 浏览 评分:0.0
每一行都有解析的c++代码。 摘要:参考代码:#include <bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话,在用的地方前加std::int main() {//主函数…… 题解列表 2024年11月05日 1 点赞 0 评论 182 浏览 评分:8.0
高精度减法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string s1,s2; int a1[1000]={0},…… 题解列表 2024年11月05日 0 点赞 0 评论 334 浏览 评分:0.0
基于c++string特性的解法,但在vs上测试无问题,在网页验证过不去 摘要:解题思路:利用c++本身的string 的特性,来完成解答c++对于string字符串是允许直接对字符串本身进行用 [ ] 的方式来访问字符串中的 单个字符,因此,我们只需通过string库内自带的…… 题解列表 2024年11月05日 0 点赞 1 评论 280 浏览 评分:9.9
高精度加法 摘要:#include"bits/stdc++.h" using namespace std; int main(){ string a1,a2; int b1[20000],b2[…… 题解列表 2024年11月05日 0 点赞 0 评论 132 浏览 评分:0.0
详细注释 2046: 输出全排列 摘要:``` #include #include #include #include #include #include #include #include #include #incl…… 题解列表 2024年11月05日 2 点赞 0 评论 183 浏览 评分:8.0
C++[竞赛入门]简单的a+b题解 摘要:题目答案: ```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b)cout…… 题解列表 2024年11月04日 0 点赞 0 评论 414 浏览 评分:0.0
蓝桥杯2015年第六届真题-生命之树 树形dp 摘要: #include using namespace std; typedef long long ll; const int N=100010,M=2*N; …… 题解列表 2024年11月04日 0 点赞 0 评论 227 浏览 评分:9.9
详细解释 2842: 大整数减法 摘要:## 高精度减 高精度减会比较麻烦,需要考虑更多的因素 主要是考虑到负数的处理问题 为了方便,在进行运算之前,我们要先判断哪个数字是较大的那个 ```c++ bool cmp…… 题解列表 2024年11月04日 0 点赞 0 评论 326 浏览 评分:0.0