[编程入门]自定义函数之字符串连接 (C++代码)用C++的输入输出就行 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){char a[999],b[999];while(cin>>a>>b)c…… 题解列表 2019年05月24日 0 点赞 0 评论 1147 浏览 评分:0.0
数据结构-字符串连接 (C++代码)----momoc 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main () { string a ,b; for(…… 题解列表 2019年05月23日 1 点赞 0 评论 1274 浏览 评分:0.0
数据结构-n阶Hanoi塔问题 (C++代码)---momoc 摘要:解题思路:水题。注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int step = 1; void move(char x,in…… 题解列表 2019年05月23日 1 点赞 0 评论 1576 浏览 评分:9.9
优质题解 题解 1675:使用string类(超简单)-----momoc 解题思路:使用string类能减少大量的比较代码,在操作增删改查时,可以把一个字符串看作一个字符来操作。为什么可以这样想?请看附带string知识:代码用到的知识已标出。不多说看代码。本人蒟蒻一枚。有什么不懂可以私信我。注意事项:删除时要覆盖、插入时要往后移动参考代码:#include 题解列表 2019年05月23日 3 点赞 0 评论 1965 浏览 评分:8.7 C语言训练-排序问题<2> (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<string> #include<cmath> #include<alg…… 题解列表 2019年05月23日 0 点赞 0 评论 896 浏览 评分:0.0 数据结构-有序线性表的有序合并 (C++代码)----momoc 摘要:解题思路:数组模拟 ,然后排序即可。注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int a[10000]; int mai…… 题解列表 2019年05月23日 1 点赞 0 评论 2077 浏览 评分:2.0 数据结构-集合union (C++代码)----momoc 摘要:解题思路:水一波题解注意事项:参考代码:#include <bits/stdc++.h> using namespace std; vector <int>a,b; int d[1000]; …… 题解列表 2019年05月23日 1 点赞 0 评论 1647 浏览 评分:0.0 蓝桥杯算法提高VIP-最大乘积 (C++代码) 摘要:解题思路: 按从小到大排序 分为两种情况: &nbs 题解列表 2019年05月23日 1 点赞 0 评论 2224 浏览 评分:5.7 数据结构-平衡二叉树的基本操作 (C++代码) 摘要: Splay,以及所有基础操作参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif constexpr auto Inf = 0X…… 题解列表 2019年05月22日 0 点赞 0 评论 1704 浏览 评分:9.9 蓝桥杯算法提高VIP-合并石子 (C++代码) 摘要: 朴素区间 Dp O(n^3),这题需要四边形不等式优化成 O(n^2) 。参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif …… 题解列表 2019年05月22日 0 点赞 0 评论 2735 浏览 评分:5.2 « 12...1377137813791380138113821383...16491650 »
C语言训练-排序问题<2> (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<string> #include<cmath> #include<alg…… 题解列表 2019年05月23日 0 点赞 0 评论 896 浏览 评分:0.0
数据结构-有序线性表的有序合并 (C++代码)----momoc 摘要:解题思路:数组模拟 ,然后排序即可。注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int a[10000]; int mai…… 题解列表 2019年05月23日 1 点赞 0 评论 2077 浏览 评分:2.0
数据结构-集合union (C++代码)----momoc 摘要:解题思路:水一波题解注意事项:参考代码:#include <bits/stdc++.h> using namespace std; vector <int>a,b; int d[1000]; …… 题解列表 2019年05月23日 1 点赞 0 评论 1647 浏览 评分:0.0
数据结构-平衡二叉树的基本操作 (C++代码) 摘要: Splay,以及所有基础操作参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif constexpr auto Inf = 0X…… 题解列表 2019年05月22日 0 点赞 0 评论 1704 浏览 评分:9.9
蓝桥杯算法提高VIP-合并石子 (C++代码) 摘要: 朴素区间 Dp O(n^3),这题需要四边形不等式优化成 O(n^2) 。参考代码:#ifndef LOCAL #include <bits/stdc++.h> #endif …… 题解列表 2019年05月22日 0 点赞 0 评论 2735 浏览 评分:5.2