1395: 倒数第二(STL multiset) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int i0,i,temp;…… 题解列表 2022年08月23日 0 点赞 0 评论 608 浏览 评分:0.0
2062: [STL训练]第二小整数(使用STL中的multiset) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int i0,i,temp;…… 题解列表 2022年08月23日 0 点赞 0 评论 426 浏览 评分:0.0
2061: [STL训练]周瑜的反间计(使用STL算法中的multiset来实现) 摘要:解题思路:注意事项:看到很多大佬都是使用set来写的,但是我觉得这道题没必要使用set,因为set相对于multiset,有输入中不能有重复元素的限制,导致set元素的插入有可能失败(仅仅代表个人看法…… 题解列表 2022年08月23日 0 点赞 0 评论 433 浏览 评分:0.0
1076: 内部收益率 摘要:```cpp #include #include #include using namespace std; int main() { int a[100],i,j,k,n,x;…… 题解列表 2022年08月23日 0 点赞 0 评论 565 浏览 评分:9.9
1075:台球碰撞 摘要:```cpp #include #include #include #define PI 3.1415926 using namespace std; int main() { …… 题解列表 2022年08月23日 0 点赞 0 评论 1015 浏览 评分:9.9
2060: [STL训练]美国大选【我来使用STL算法中的multiset来写一份题解】 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>using namespace std;int main(void){ int i,temp; …… 题解列表 2022年08月23日 0 点赞 0 评论 908 浏览 评分:0.0
[STL训练]Who's in the Middle:我看很多大佬都是用sort的,我来写一个使用STL中的multiset来实现的 摘要:解题思路:找到中间值注意事项:参考代码:#include<iostream> #include<set> using namespace std; int main(void) { …… 题解列表 2022年08月23日 0 点赞 0 评论 489 浏览 评分:0.0
质因数分解,很自然的思路 摘要:解题思路:把4个数都变成:质因数1^x1*质因数2^x2*质因数3^x3...然后进行讨论即可,对于同一个底数,假设4个数对应的指数(可以为0)分别为a,b,c,d。令x的指 …… 题解列表 2022年08月22日 0 点赞 0 评论 932 浏览 评分:9.9
题解 1347: 八皇后(c++) 摘要:```cpp #include using namespace std; const int N = 20; int a[N],n,ans = 0; bool tp[3][2*N]; …… 题解列表 2022年08月22日 0 点赞 0 评论 983 浏览 评分:9.9
入门级的莫队,时间复杂度O(n√n) 摘要:解题思路:入门级的莫队,不会的可以看看这篇莫队入门文章:https://www.cnblogs.com/WAMonster/p/10118934.html注意事项:参考代码:#include<bits…… 题解列表 2022年08月21日 0 点赞 0 评论 830 浏览 评分:9.0