陶陶摘苹果-题解(C++代码) 摘要:```cpp #include using namespace std; int main() { int n, a[10], sum = 0; for (int i = 0; i …… 题解列表 2020年04月29日 0 点赞 0 评论 964 浏览 评分:9.9
2^k进制数-题解(C++代码)——深搜版本 摘要:# 思路 这个题是排列组合的问题,所以考虑使用排列组合; 这个的思路可以参考我的[CSDN博客](https://blog.csdn.net/qq_43270828/article/details…… 题解列表 2020年04月29日 0 点赞 0 评论 1045 浏览 评分:6.0
数据结构-直接插入排序-带哨兵解法 (C++描述) 摘要: **1.带哨兵的直接插入排序** #include using namespace std; int f(int a[],int n){ int i,j; for…… 题解列表 2020年04月29日 0 点赞 1 评论 982 浏览 评分:9.3
蓝桥杯算法提高VIP-盾神与砝码称重-题解(C++代码)记忆化搜索 摘要:别的不多说,13行剪枝的技巧大家可以学习一下 ```cpp #include using namespace std; const int maxn=25; int n,m,r[maxn]…… 题解列表 2020年04月29日 0 点赞 0 评论 1149 浏览 评分:9.9
字符逆序-题解(C++代码) 三种方法哦 不来挑一挑嘛,,,,0.0 摘要:**c++中字符串反转的3种方法** ------------ 第一种:使用algorithm中的reverse函数 #include #include …… 题解列表 2020年04月29日 0 点赞 0 评论 1366 浏览 评分:9.9
[编程入门]结构体之成绩记录-题解(C++代码) 摘要:```cpp #include using namespace std; #include struct student { string id; string nam…… 题解列表 2020年04月29日 0 点赞 0 评论 799 浏览 评分:0.0
小九九 (C++描述) for嵌套循环 摘要:输出九九乘法表可以利用嵌套for循环; 由样例输出可知 每行内层循环变量j应当小于外层变量i,故**j…… 题解列表 2020年04月29日 0 点赞 0 评论 1448 浏览 评分:9.0
汽水瓶-题解(C++代码)【真民工向】 摘要:- ##汽水瓶题解(民工向) 本题思路很简单,所以我们将每一次兑换以及兑换后喝掉手中的汽水叫做一个回合。 回合开始前手中只有空瓶,回合结束后,手中也只有空瓶。 采用while语句判断回合…… 题解列表 2020年04月28日 0 点赞 0 评论 1406 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C++代码) 摘要:```cpp #include using namespace std; struct date { int year; int month; int day;…… 题解列表 2020年04月28日 0 点赞 0 评论 831 浏览 评分:7.3
蓝桥杯算法提高VIP-身份证排序-题解(C++代码) 摘要:字符串排序一般使用STL方法进行排序,可以很准确的排列,这里如果时间超限,就将cout修改为printf,这里有一个小东西,就是将string类型变为char类型,使用cstring中的strcpy(…… 题解列表 2020年04月28日 0 点赞 0 评论 996 浏览 评分:0.0