1427蓝桥杯-买不到的数目 摘要:解题思路:设输入的两个数分别为min,max,则可以看出,若x(x>max),x+1,x+2,...,x+min-1这连续的min个数都可以用min,max组合表示,则大于x+min-1的数一定也都可…… 题解列表 2022年03月23日 0 点赞 0 评论 711 浏览 评分:9.9
偶数求和_判断最后能否为0 摘要:#include <iostream> #include <string> using namespace std; int main(){ int n,m;//n表示长度 m表示没…… 题解列表 2022年03月23日 0 点赞 0 评论 243 浏览 评分:0.0
20行搞定杨辉三角 摘要:解题思路:注意事项:第一 注意数据范围,需要long long ,在c++中可以写typedef long long ll第二 数组开辟必须大于1000参考代码://#include<bits\std…… 题解列表 2022年03月23日 0 点赞 0 评论 723 浏览 评分:9.9
简洁,详细,c++ 摘要:```cpp #include using namespace std; int main(){ long long time; cin >>…… 题解列表 2022年03月22日 0 点赞 0 评论 463 浏览 评分:8.0
蓝桥杯2017年第八届真题-合根植物 并查集 摘要:```cpp #include using namespace std; int n, m,k; int fa[1005 * 1005]; int map[1005][1005]; int…… 题解列表 2022年03月22日 0 点赞 0 评论 543 浏览 评分:9.9
暴力做法!!! 摘要:```cpp #include using namespace std; int n, m, ans = 0; const int N = 40; //行号和列号都是偶数不能步入当前…… 题解列表 2022年03月22日 0 点赞 0 评论 401 浏览 评分:0.0
用vector巧解高精度问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <vector> using namespace std;vector<int> add(vector <int> …… 题解列表 2022年03月22日 0 点赞 0 评论 359 浏览 评分:0.0
简单的动态规划 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int dp[40][40] = {0}; int n,m…… 题解列表 2022年03月22日 0 点赞 0 评论 434 浏览 评分:9.9
1045: [编程入门]自定义函数之整数处理 c++ 摘要:解题思路:思路普通,直白,易理解,新手做法。(1)构建两个数组,赋相同值。(2)通过双循环,b数组中的数依次与a数组的每一个数比较大小,通过sum记录值,达到9时,b[j]就是最值。交换b[j]与b[…… 题解列表 2022年03月22日 0 点赞 0 评论 413 浏览 评分:0.0
混子(为什么才25%??dp有的都30+) 摘要:#include #include using namespace std; string a; char b[27]; int main(){ cin>>a; for(int i…… 题解列表 2022年03月22日 0 点赞 0 评论 407 浏览 评分:0.0