蓝桥杯算法提高VIP-盾神与砝码称重-题解(C++代码)记忆化搜索 摘要:别的不多说,13行剪枝的技巧大家可以学习一下 ```cpp #include using namespace std; const int maxn=25; int n,m,r[maxn]…… 题解列表 2020年04月29日 0 点赞 0 评论 847 浏览 评分:9.9
字符逆序-题解(C++代码) 三种方法哦 不来挑一挑嘛,,,,0.0 摘要:**c++中字符串反转的3种方法** ------------ 第一种:使用algorithm中的reverse函数 #include #include …… 题解列表 2020年04月29日 0 点赞 0 评论 1106 浏览 评分:9.9
[编程入门]结构体之成绩记录-题解(C++代码) 摘要:```cpp #include using namespace std; #include struct student { string id; string nam…… 题解列表 2020年04月29日 0 点赞 0 评论 529 浏览 评分:0.0
小九九 (C++描述) for嵌套循环 摘要:输出九九乘法表可以利用嵌套for循环; 由样例输出可知 每行内层循环变量j应当小于外层变量i,故**j…… 题解列表 2020年04月29日 0 点赞 0 评论 1259 浏览 评分:9.0
汽水瓶-题解(C++代码)【真民工向】 摘要:- ##汽水瓶题解(民工向) 本题思路很简单,所以我们将每一次兑换以及兑换后喝掉手中的汽水叫做一个回合。 回合开始前手中只有空瓶,回合结束后,手中也只有空瓶。 采用while语句判断回合…… 题解列表 2020年04月28日 0 点赞 0 评论 1133 浏览 评分:9.9
[编程入门]结构体之时间设计-题解(C++代码) 摘要:```cpp #include using namespace std; struct date { int year; int month; int day;…… 题解列表 2020年04月28日 0 点赞 0 评论 682 浏览 评分:7.3
蓝桥杯算法提高VIP-身份证排序-题解(C++代码) 摘要:字符串排序一般使用STL方法进行排序,可以很准确的排列,这里如果时间超限,就将cout修改为printf,这里有一个小东西,就是将string类型变为char类型,使用cstring中的strcpy(…… 题解列表 2020年04月28日 0 点赞 0 评论 781 浏览 评分:0.0
蓝桥杯算法提高VIP-选择排序-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int n; cin>>n; int a[n]; for…… 题解列表 2020年04月28日 0 点赞 0 评论 561 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C++代码) 摘要:```cpp #include using namespace std; void swap(int *a,int *b,int i,int l) { for(int n=0;ni…… 题解列表 2020年04月28日 0 点赞 0 评论 505 浏览 评分:0.0
蓝桥杯算法提高VIP-排列式-题解(C++代码) 摘要:```cpp #include #include using namespace std; string s3="123456789"; int v[10];//如果被访问过,就置为1,看1…… 题解列表 2020年04月28日 0 点赞 1 评论 480 浏览 评分:9.9