蓝桥杯算法训练VIP-字符串的展开 (C++代码) 摘要:解题思路:注意事项:参考代码:不写为啥了:#include<cstdio> #include<cstring> using namespace std; char a[200]; bool f…… 题解列表 2018年02月10日 1 点赞 0 评论 1297 浏览 评分:7.2
蓝桥杯算法训练VIP-乘积最大 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<memory.h> using namespace std; char…… 题解列表 2018年02月10日 2 点赞 0 评论 1739 浏览 评分:9.9
蓝桥杯算法提高VIP-种树 (C++代码) 摘要:解题思路:这道题开始以为是dp,后来发现如果这样做就会炸空间啊!于是采用贪心。思路非常神奇。就是以在每个坑种树的收益建一个大根堆然后用链表存它的前驱后继(n的后继为1,1的前驱为n)每次取最大的收益。…… 题解列表 2018年02月10日 0 点赞 0 评论 1761 浏览 评分:9.0
蓝桥杯算法训练VIP-装箱问题 (C++代码) 摘要:解题思路:这道题看似是搜索,但是可以用背包做。题目要求求出最小的剩余空间,也就是要求出最大的可装重量这样,我们可以将一个物体的重量当作它的价值,进而将题目转变为一个基本的01背包问题:有一个箱子容量为…… 题解列表 2018年02月10日 0 点赞 0 评论 1020 浏览 评分:9.9
蓝桥杯算法提高VIP-班级排名 (C++代码) 摘要:参考前排大神的代码,并加以重构,简化了代码的复杂度。感谢 WU 大神~注意事项:通过结构体的建立,可以更有条理的建立题目逻辑因为达达只有一个,所以用break大大减小了计算量(如果不用,则会输出超…… 题解列表 2018年02月09日 1 点赞 0 评论 1605 浏览 评分:9.9
2004年秋浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10],i,mini=0; …… 题解列表 2018年02月09日 0 点赞 0 评论 773 浏览 评分:0.0
C二级辅导-阶乘数列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double m=0,j,c; in…… 题解列表 2018年02月09日 0 点赞 0 评论 751 浏览 评分:0.0
C二级辅导-统计字符 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ char a; int q,w,e,r…… 题解列表 2018年02月09日 2 点赞 0 评论 1320 浏览 评分:0.0
C二级辅导-公约公倍 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i,m,n,f; cin>>m>>n; for(i=n;i>0…… 题解列表 2018年02月09日 0 点赞 0 评论 681 浏览 评分:0.0
C二级辅导-同因查找 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i; for(i=10;i<=1000;i++) { if(…… 题解列表 2018年02月09日 0 点赞 0 评论 930 浏览 评分:0.0