蓝桥杯基础练习VIP-矩形面积交 摘要:三种情形 1.两个矩形重合 2.两个矩形有一部分重合 3.两个矩形不重合 我们通过画出这三种情形可以发现,1,2两种将四个横纵坐标由大到小排序后比如x1…… 题解列表 2022年02月06日 0 点赞 0 评论 338 浏览 评分:9.9
Hifipsysta-1184-众数问题(C++代码)哈希表法很简单 摘要:```cpp #include using namespace std; const int MAXN=50000; int idx[MAXN]; int main(){ …… 题解列表 2022年02月06日 0 点赞 0 评论 297 浏览 评分:0.0
Hifipsysta-2047-皇后问题(C++代码)DFS标记法 摘要: ```cpp #include #include #include using namespace std; const int MAXN = 11; int vis[MA…… 题解列表 2022年02月06日 0 点赞 0 评论 352 浏览 评分:9.9
字符排列,纯基础方法 摘要:解题思路:每次找到一种字符并且计算其数量,找完后将其值变为0,避免下次再访问注意事项:不知道怎么比较两个字符是否相同,所以我把字符强转为int类型来比较。参考代码:#include<iostream>…… 题解列表 2022年02月06日 0 点赞 0 评论 515 浏览 评分:9.9
Hifipsysta-1047-[编程入门]报数问题(C++链表)基于STL的链表实现 摘要:```cpp #include #include using namespace std; list mylist; list::iterator iter; int main()…… 题解列表 2022年02月06日 0 点赞 0 评论 226 浏览 评分:0.0
采药(dp动态规划之 01背包问题) 摘要:```cpp #include #include #include using namespace std; const int MAX = 1001; int T, M;//采药时间,数…… 题解列表 2022年02月05日 0 点赞 0 评论 432 浏览 评分:9.9
简单型背包(DFS深搜) 摘要:```cpp #include #include #include using namespace std; const int MAX=10001; int V,M;//体积,重量 i…… 题解列表 2022年02月05日 0 点赞 0 评论 324 浏览 评分:9.9
编写题解 1931: 蓝桥杯算法提高VIP-逆序排列(C++代码) 摘要:解题思路:就一个数组20行就解决了,根本不用那么麻烦注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[20],…… 题解列表 2022年02月05日 0 点赞 0 评论 390 浏览 评分:8.0
Hifipsysta-1160题-出圈(C++代码)基于STL的链表实现 摘要:```cpp #include #include using namespace std; list mylist; list::iterator iter; int main()…… 题解列表 2022年02月05日 0 点赞 0 评论 287 浏览 评分:0.0
核电站问题(根据前四个样例摸清楚答案规律) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;int main(){ …… 题解列表 2022年02月05日 0 点赞 0 评论 249 浏览 评分:9.9