摘要: 虽然几乎没有人看,还是要碎碎念下。 不想被身边的人关注,于是换了新的账号。可能会偶尔被发现吧 阅读全文
posted @ 2018-10-21 17:18 mvss 阅读(180) 评论(0) 推荐(0)
摘要: "BZOJ4195" 分析 题目中给了相等关系和不等关系,把题目中的元素划为两类。判断是不是可以同时满足其实就是在判断可不可以不交叉的划分成两个部分。因此可以用并查集来解决。同时数据范围又很大,所以想到了映射到map 中用map来解决。 代码 阅读全文
posted @ 2018-10-21 19:25 mvss 阅读(144) 评论(0) 推荐(0)
摘要: #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define sd(n) scanf("%d",&n) #define sdd(n,m) scanf("%d%d",&n,&m) #... 阅读全文
posted @ 2018-10-21 17:28 mvss 阅读(197) 评论(0) 推荐(0)