08 2018 档案

摘要:C. Maximal Intersection 题意:删去某个集合,使得所有集合的相交部分最大,求此最大相交部分的大小 错误原因:题意理解错 set和multiset 题解 运用multiset的自动排序功能以及多重集的性质 #include<bits/stdc++.h> #define maxn 阅读全文
posted @ 2018-08-25 14:55 LLbinGG 阅读(78) 评论(0) 推荐(0)
摘要:C. Vanya and Label 法一、直白预处理 https://blog.csdn.net/qq_32473657/article/details/51567689 #include<stdio.h> #include<string.h> using namespace std; const 阅读全文
posted @ 2018-08-25 09:11 LLbinGG 阅读(204) 评论(0) 推荐(0)
摘要:连接:http://codeforces.com/contest/1020 C.Elections 题型:你们说水题就水题吧...我没有做出来...get到了新的思路,不虚。好像还有用三分做的? KN Point(注意复杂度性能):优先队列1,优先队列2 阅读全文
posted @ 2018-08-15 10:30 LLbinGG 阅读(138) 评论(0) 推荐(0)
摘要:http://codeforces.com/contest/1016 A. 没想到这个也会TLE,太粗心了 B. 暴力就好了,多情况讨论又出错... 思路跟我一样的解法 为什么我做了那么多讨论,原因是没注意这个: 标记 最后一个字符,同时注意 l+m-3. 特殊情况就 vis 00000111111 阅读全文
posted @ 2018-08-11 16:52 LLbinGG 阅读(131) 评论(0) 推荐(0)
摘要:vector、map 判断某元素是否存在、查找指定元素 【C++】判断元素是否在vector中,对vector去重,两个vector求交集、并集 PS:注意重载 阅读全文
posted @ 2018-08-04 09:00 LLbinGG 阅读(3312) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/cfzjxz/article/details/7240165 阅读全文
posted @ 2018-08-03 15:26 LLbinGG 阅读(271) 评论(0) 推荐(0)